All Collections
Advanced Help
Marketing
Prevent the Thank you page from reloading
Prevent the Thank you page from reloading

Prevent duplicate Google Adwords conversions with this script.

Niall Diamond avatar
Written by Niall Diamond
Updated over a week ago

You may have had issues with Google Adwords duplicating your transactions and thus not reporting conversions correctly. If this is the case, it may help to prevent the user from reloading the Thank You page. Below is a script that you can add to your Footer block in the Theme options.

<script>
if(location.pathname == "/checkout/thank-you") {
(function () {
$.ajax({
method: 'get',
url: '/This-will-kill-the-session'
})
})();
}
</script>

Google Adwords Duplicate Conversions should hopefully be solved by implementing this functionality.

Did this answer your question?