Integrating java script tracking code

GK User
Thu Feb 06, 2014 10:55 pm
Hello,

I am using your Boutique template in Joomla 2.5 and am having trouble finding the file where I can add Hubspot (online marketing tool) javascript code for tracking pages. Hubspot offers installation steps that are not working with your template setup.

They said to go to the template manager > Templates > "your template" (Boutique) > Edit main page template
And insert this code before the </body> tag

<!-- Start of Async HubSpot Analytics Code -->
<script type="text/javascript">
(function(d,s,i,r) {
if (d.getElementById(i)){return;}
var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
n.id=i;n.src='//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/348546.js';
e.parentNode.insertBefore(n, e);
})(document,"script","hs-analytics",300000);
</script>
<!-- End of Async HubSpot Analytics Code -->

Following these steps, your template did not allow me to do so, and in looking through the actual files of the website, I did not find the correct file to edit either.

I need to know how and where to add this code to our site bigbadflower.com.
And do you know if it will track product pages of our virtuemart as well?

Here is a link to Hubspot steps which I tried to follow their Joomla 2.5 instructions:
http://help.hubspot.com/articles/How_To ... -on-joomla

Thank you!
User avatar
Fresh Boarder

GK User
Fri Feb 07, 2014 7:45 am
You need to manually (via ftp) edit file:
/templates/gk_boutique/layouts/default.php
User avatar
Moderator

GK User
Fri Feb 07, 2014 8:17 am
That did not work. :/
User avatar
Fresh Boarder

GK User
Sat Feb 08, 2014 8:58 pm
Could You please post an url to your site?
User avatar
Moderator

GK User
Sun Feb 09, 2014 5:17 am
bigbadflower.com
User avatar
Fresh Boarder

GK User
Mon Feb 10, 2014 10:12 am
Perhaps you have posted it in wrong place of the file.
Please create a zipped archive ov the default.php file and attach it to your replay.
User avatar
Moderator

GK User
Mon Feb 10, 2014 5:52 pm
Here it is. I tried it one more time, and it still doesn't work. Let me know if I put it in the right place. Thank you!
User avatar
Fresh Boarder

GK User
Tue Feb 11, 2014 7:57 am
The code seems fine.
Could You please post an url to your site?
User avatar
Moderator

GK User
Tue Feb 11, 2014 5:49 pm
User avatar
Fresh Boarder

GK User
Tue Feb 11, 2014 9:41 pm
The code can be seen in site source code. Why it doesn't work is completely not connected to our template.
User avatar
Moderator

GK User
Tue Feb 11, 2014 9:45 pm
Thank you very much for your help! :)
User avatar
Fresh Boarder

GK User
Wed Feb 12, 2014 8:52 am
No problem. Perhaps please ask code provider support to check why it isn't working.
If You will have any other questions, feel free to post new forum threads.
User avatar
Moderator

GK User
Wed Nov 04, 2015 11:14 pm
Hi, we had the same issue but with STOREFRONT for Joomla 3. Uploaded it to layouts>default.php and it works.
User avatar
Fresh Boarder

GK User
Sat Nov 07, 2015 3:45 pm
For most users it works fine. Thanks for sharing the solution.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.