Hack on How to Track Shopify Sales in Google Analytics
Allowing users to purchase through PayPal skews sales data in Google analytics, all transactions are tracked as PayPal which isn’t ideal as we want to know which channel is performing better. However, there is a simple solution to overcome this problem demonstrated in the 3 easy to follow steps below.
1. LOGIN TO YOUR SHOPIFY DASHBOARD
Login to your Shopify dashboard and click themes under the heading your website on the left side of the screen. You will then be presented with a new menu – click template editor.
2. ALTER THE FILE
When you are inside the theme editor, navigate to the product.liquid file on the left hand side of the file menu. Scroll down to line 110 and locate the line of code highlighted in the red box in the screenshot below.
3. REPLACE THE FORM CODE
Replace the highlighted code with the following:
<form action="/cart/add" method="post" id="cart onsubmit="_gaq.push(['_linkByPost', this]);">
Make sure you save the file by clicking save in the top right hand corner for the changes to take effect. Job done, analytics should now be tracking correctly.
As the world of business becomes increasingly complex, finding solutions to problems in the office is becoming more crucial. Artificial intelligence (AI) technologies have stepped in to give us a helping hand, and are quickly transforming almost...read more
The most important thing to bear in mind when conducting local keyword research is that one should never translate keywords, but ideas. It is best to do keyword research for local markets and then use the keywords in the translated content....read more
We have been playing with Google Analytics Client ID and found that not many agencies have been using it. The Client ID can be found in the GA cookie and Client ID is stored on the GA cookie of your website’s actual domain. Google Analytics stores...read more