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.
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
Over the years, we have seen plenty of WordPress hacks and thankfully they are usually fairly easy to diagnose. This bank holiday Monday we have fought a nasty one from cashnude.com a spammy website which opens up an adult chat as a pop up, under...read more
Adding Google authorship to content is now an important step for many sites and content creators. Enabling your content to display its author gives your listings in the search engine results a potential increased CTR of over 20%. Including it on...read more