Adding tracking script to every page

Solved
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
Shopify Partner
1518 149 211

@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
0 Likes
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
Tourist
4 1 0

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

0 Likes
Shopify Partner
1518 149 211

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
0 Likes
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
Shopify Partner
1518 149 211
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
0 Likes
New Member
4 0 0

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

Much appreciated

0 Likes
Shopify Partner
1518 149 211
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
0 Likes