SEO, AdWords, affiliates, advertising, and promotions
I've been trying to get my purchases from a Shopify Buy Button on my website to be tracked. I wouldn't call myself a coder, but after some trial and error, I've gotten close! Need a bit of help to get it working perfectly.
1. I set up cross-domain tracking and added my main site to the blocked referral list
2. I added this snippet to the Additional Scripts section of my Shopify checkout section (replacing with my main website and UA code)
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-X"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('set', 'linker', {'domains': ['mainwebsite.com']}); gtag('js', new Date()); gtag('config', 'UA-XXXXXXXXX-X'); gtag('event', 'purchase', {transaction_id: {{checkout.order_number}}, value: {{checkout.subtotal_price}}, shipping: {{checkout.shipping_price}}}); </script>
When using Tag Assistant, I can see that it is pulling the order id #, the subtotal price, and shipping price. However, it is pulling it without the decimal, i.e. a $30.00 order is showing as $3000. Also, cannot get it to be able to pull a list of the line items.
Any help would be much appreciated!
Hi Ron,
Did you get any luck tracking your sales from the Shopify Buy Button?
For now Google Analytics sees someone who clicks "checkout" as a new direct visitor with no history, it's very frustrating to not be able to attribute the sales to the channel...
Any help is appreciated.
Hi, I have experience in conversion tracking on buy button, so if you are looking for help, just write me on info@panakeya.sk, regards Lubomir
User | RANK |
---|---|
8 | |
8 | |
3 | |
3 | |
3 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023