Google Analytics Event Tracking
A customer of mine recently wanted to know which products and category pages were the most viewed on his site via Google Analytics.
You can use the Site Content section to see all page loads, but it was more difficult to see just the product for instance. So I implemented Event tracking for page loads on product, category and static pages on X-Cart 4. Using this javascript as an example for a product page load Code:
$(function () { You can use the following Code:
{if $main eq "product"} Here is a full example of the code https://www.zone1creative.co.uk/know-products-selling-x-cart-store-know-pages-visited/ |
All times are GMT -8. The time now is 10:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.