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 -->
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
Forgot to attach the ocmod itself.
BR,
ThemeBurn team
|
|
Works perfectly so far. Thanks
|
|
Glad we could help
BR,
ThemeBurn team
|
|