We use Google Analytics cookies on our website, Google Analytics anonymously stores information about what pages you visit, how long you are on the site, how you got here and what you clicked on. Please see our Cookie Policy for information.
安博电竞联赛
Installing the plugin
Upload the plugin to the /plugins folder in your nopCommerce directory.
Restart your application (or click 'Reload list of plugins' button).
Scroll down through the list of plugins to find the newly installed plugin.
Click on the 'Install' link to install the plugin.
Note: If you're running nopCommerce in medium trust, then it's recommended to clear your \Plugins\bin\ directory
Configuring the plugin
Click the configure button on the plugin.
You will come to the configuration page.
Firstly you'll need to fill in the licence key to activate the plugin. We would have sent you the licence key separately.
The licenced host will change to your url if the key is successful.
Google Analytics Integration
Google Analytics is a free website stats tool from Google. It keeps track of statistics about the visitors and ecommerce conversion on your website.
Follow the next steps to enable Google Analytics integration:
- Create a Google Analytics account and follow the wizard to add your website
- You also will need to enable Enhanced Ecommerce in the Google Analytics Admin settings for your View e.g.:
- Copy the Tracking ID into the 'ID' box of the plugin settings
- Click the 'Save' button and Google Analytics will be integrated into your store
You'll find that some of the inputs are already filled in. These are default values for Google Analytics.
You can choose to include tax or not in your prices by selecting 'Include tax'.
How to use DC Google Analytics with Enhanced e-Commerce
The Google Analytics tracking code will be inserted into the header of your webpage.
\/ Scroll through the Pictures below \/
Modified nopCommerce Views (cshtml) to enable Product Impression tracking
In order for product impression data to be sent, you have to modify the following views:
- CategoryTemplate.ProductsInFridOrLines.cshtml
- ManufacturerTemplate.ProductsInGridOrLines.cshtml
- Search.cshtml
- CrossSellProducts.cshtml
- HomepageBestSellers.cshtml
- HomepageProducts.cshtml
- ProductsAlsoPurchased.cshtml
- RecentlyAddedProducts.cshtml
- RecentlyViewedProducts.cshtml
- RecentlyViewedProductsBlock.cshtml
- RelatedProducts.cshtml
If you have the default nop theme, we have already done this for you. You can find them in the themes folder of the downloaded DC Google Analytics plugin.
To add product impression tracking to your custom pages, you will need to add the following code.
(In Bold is what we have added, this is the code you will have to add to your views)
GAEnhanced_Impression - Example
|
The string.Format paramaters used represent:
- {0} = Product ID
- {1} = Position of the product on the page
- {2} = Origin of product list (Homepage Best Sellers, Recently Added Products)
It is important that you leave the '|' in the string.Format.
When working with pagination, we use a different bit of code so that Google Analytics can use products on paginated pages.
|
i++ + (Model.PagingFilteringContext.PageSize*(Model.PagingFilteringContext.PageNumber - 1))
|
This is used to get the product number out of a paginated list, it prevents duplicate positions getting passed to Google Analytics.
I find their approach to our relationship very professional whilst being refreshingly realistic. We now consider them to be part of our team
Technical Director, Bainbridge International
⭐⭐⭐⭐⭐