SEO, AdWords, affiliates, advertising, and promotions
Hi,
I need to track leads (conversions) on my Shopify website. I have made Google account and created a conversion action. The next step is to add Google's Event snippet to my "Thank you" -page's <header>
The problem: "Thank you" -page is made in the basic Shopify page (Turbo theme) -> There is no place to add that Event snippet, because the code template looks:
Can I create some rule, for example: "If the page's title is: "Thank you" -> show this Event snippet"?
Any help is highly appreciated!
Solved! Go to the solution
This is an accepted solution.
That's right, the code will look something like this
{% if template contains 'thank-you-tracked' %}
{% include 'your-snippet-with-the-tracking-code' %}
{% endif %}
Just put that in the <head> section on theme.liquid and it should (... should!...) work
Have you tried injecting the code only on that page using Google Tag Manager?
No I haven't tried. I have the Tag Manager also. Can I add the Tag manager's -tag to other place thank <header>?
For example "Content" -section (<>) for that specific page?
Does it track conversions then as it should?
Might need to do it with a snippet.
So the snippet contains the code you need for the conversion tracking
Then in the theme.liquid file you'd use an include/otherwise string that says if the template includes 'article_template' then include the snippet within the head section.
If that makes sense?
Hi,
That's maybe something I thought myself. So, "if the page's title is Thank you -add this event snippet to header"
In other pages the event snippet won't show. Only that one page where the lead redirect after submit the contact form (contact form isn't Shopify's own..works better than original Shopify).
This is an accepted solution.
That's right, the code will look something like this
{% if template contains 'thank-you-tracked' %}
{% include 'your-snippet-with-the-tracking-code' %}
{% endif %}
Just put that in the <head> section on theme.liquid and it should (... should!...) work
Would help, if I sell i.e products.
I collect leads via contact from. After the lead click "Submit" -> it redirects to "Thank you" -page - there should be the event snippet.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024