Personalized checkout and custom promotions with Shopify Scripts
Hello,
Where do I add the code from Lucky Orange in the dawn theme so I can track shoppers on my site?
It says to paste just before the closing </head> tag but I have no idea how to ge there.
Thank you so much, appreciate it!
In your code files, go to Layout - Theme.liquid.
Then do a search for the </head> tag and paste your code right before that tag.
Were you able to find it?
Hello @andy188, just wanted to check back in and see if you still needed any help. Thanks!
HI,
Yes thank you, it helped but now I have /<head> on my live website in at the top left corner.
Can you paste the link to your website? Thanks.
Can you take a screenshot of your theme.liquid. file where you pasted the code? Thanks.
I reversed the code for now but here is what it looked like. I probably did not paste it right.
Can you take a screenshot of where you pasted the code?
I posted it above. Did you want me to take a screenshot of something else?
I don't see the lucky code snippet in the screenshot. What does the code look like?
If you want to send it to me discreetly so I can see it, follow the steps in my signature. Thanks.
In your Shopify admin, go to "Online Store" and select "Themes."
Locate the Dawn theme and click on the "Actions" dropdown menu.
Choose "Edit code" from the options provided.
In the code editor, under the Layout folder, locate the "theme.liquid" file, which represents the main template for your theme.
Open the "theme.liquid" file and scroll down until you find the closing </head>
tag, which marks the end of the HTML head section.
Just before the closing </head>
tag, paste the code provided by Lucky Orange.
Make sure to publish the changes by clicking on the "Save" button.
Hope this helps!
Thank you!
I have on little problem now, on my live website you can see at the top of the website /<head>.
I did something wrong probably. Please help me fix this, thank you so much.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025