Statcounter

Tagged: 

This topic has been marked as resolved.

Below are StatCounter code that I wish to add to all pages. Before Shoppica, I used to stick it somewhere inside footer.tpl.

With Shoppica, I appended it before </body> tag in footer.tpl. When I do that, all I get is a blank page. Can you help? Thanks.

 

 

<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=9999999;
var sc_invisible=1;
var sc_security="x9x9x9x9x9";
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost+
"statcounter.com/counter/counter.js'></"+"script>");
</script>
<noscript><div class="statcounter"><a title="shopify
analytics ecommerce tracking"
href="http://statcounter.com/shopify/" target="_blank"><img
class="statcounter"
src="//c.statcounter.com/99999999/0/x9x9x9x9x9x/1/" alt="shopify
analytics ecommerce tracking"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
May 21, 2016 at 7:30 pm #47865

Hi,

We will need the website url, admin and ftp access, so we can check.

You can use hidepost to share private information with the support staff.

BR,
ThemeBurn team

May 25, 2016 at 1:42 pm #48070

I installed fresh instance of Opencart 2.1.0.2 with Shoppica v.3.0.1. I turned on all optimizations in Theme Settings > System. Then I applied the changes to footer.tpl via ocmod to add Statcounter code.

Try turn off Optimize JS and Defer JS. In doing so, some pages appears to work. But when you go into a product page, the product image does not display.

I include details to access my test server below. I also attach the ocmod to append the Statcounter code into footer.tpl. Thanks in advance for your assistance. :-)

May 28, 2016 at 7:37 pm #48220

It appears I’m not allowed to post attachments. So I’ll just post the code via pastebin.

  • This reply was modified 2884 days ago by  eugeneteo.
  • This reply was modified 2884 days ago by  eugeneteo.
May 28, 2016 at 7:41 pm #48222

Hi,

Your problem should be fixed now. We only added a small attribute to the script tag:

<script type="text/javascript" data-capture="0">

This tells BurnEngine not to scrape the code, when Optimize/Defer JS options are enabled.

BR,
ThemeBurn team

June 2, 2016 at 12:40 pm #48330

Forgot to attach the ocmod itself.

BR,
ThemeBurn team

June 2, 2016 at 12:41 pm #48331

Works perfectly so far. Thanks :-)

June 2, 2016 at 4:51 pm #48346

Glad we could help :)

BR,
ThemeBurn team

June 3, 2016 at 5:43 pm #48403
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.