Episerver Integration with Google Analytics

DG
DG
Vote:
 

Hello Experts,

Requesting pointers around Episerver and Google Analytics integration, scnerio basis specifically.

thanks in advance.

regards

#255643
May 27, 2021 17:14
Vote:
 
#255648
May 27, 2021 19:46
Vote:
 

The GA add-on is quite useful as David mentioned. If you are looking for a simple integration on your pages you could use the ASP.NET MVC integration of GA available here: https://stackoverflow.com/questions/21832711/implementing-google-analytics-in-mvc4-c

As EPiServer CMS is using ASP.NET mvc behind the scenes, the implementation shouldn't be too complex:

  1. Create a partial view named GoogleAnalytics
  2. Copy & Paste the Analytics tracking JavaScript code from Google
  3. Use @{ Html.RenderPartial("GoogleAnalytics"); } in a template which is used by all pages
  4. Publish the site
  5. Wait 24 hours for statistics to appear
#255813
May 31, 2021 12:01
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.