Adding tracking script to every page

Solved
JustG
New Member
4 0 0

Hey guys,

Sorry for the newbie question but I've just added a tracking app and it's asking me to put a specifc code on every page. Is there a way I can paste it into .liquid to do it quicky? Thanks in advance for the advice!

0 Likes
suyash1
Shopify Partner
3007 327 502

@JustG 

 

if it needs to be put on every page then it needs to be put it before </head> or </body> in theme.liquid, what does the app say?

You are welcome to contact me, my email - suyash.patankar@gmail.com
Free Shopify solutions/tutorials on youtube
#1 page builder app on Shopify - for FREE! PageFly
0 Likes
JustG
New Member
4 0 0

Thanks for getting back to me. It says:

"Place the following tracking code on all pages of your site. The code is asynchronous and will not block your page from loading."

I'm not quite sure what that means.

0 Likes
Mirokuwu
Tourist
4 1 0

theme.liquid display on every page of your site, so just put it in theme.liquid

0 Likes
suyash1
Shopify Partner
3007 327 502

This is an accepted solution.

@JustG - any screenshot of the  code?

 

most probably it is javascript and put it before </head> in theme.liquid file

You are welcome to contact me, my email - suyash.patankar@gmail.com
Free Shopify solutions/tutorials on youtube
#1 page builder app on Shopify - for FREE! PageFly
0 Likes
JustG
New Member
4 0 0
<script type='text/javascript'>
window.__lo_site_id = 264508;
 
(function() {
var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);
  })();
</script>
0 Likes
suyash1
Shopify Partner
3007 327 502
yes put it in theme.liquid file before or if you find it difficult
then please add me to staff, you can contact me on given details below.
You are welcome to contact me, my email - suyash.patankar@gmail.com
Free Shopify solutions/tutorials on youtube
#1 page builder app on Shopify - for FREE! PageFly
0 Likes
JustG
New Member
4 0 0

Thank you! I think that's in okay now. 

Much appreciated

0 Likes
suyash1
Shopify Partner
3007 327 502
sure, if you need anything, let me know. I will help to the best of my
knowledge.
You are welcome to contact me, my email - suyash.patankar@gmail.com
Free Shopify solutions/tutorials on youtube
#1 page builder app on Shopify - for FREE! PageFly
0 Likes
zayan
New Member
1 0 0

Thanks for your suggestions, I also have a tool based tracking site. For more info, you can click here.

0 Likes