Let’s Talk

We would love to hear from you. Want to know more about
our services or have any questions? Say Hi!

Google Analytics Custom Implementation

author-icon-1 Ketan Garala

category-icon Digital Marketing

We know Sitecore provides Sitecore analytics. It has great features and functionality. Sitecore provides more reports like page/URL tracking, item tracking, etc. so many reports are there in Sitecore analytics dashboard. You can also do end-level customization in Sitecore analytics, for example if you want to add user journey and custom goal, event, and page view tracking.

But one of the clients does not want to go with Sitecore analytics because they are more familiar with google analytics and they want to continue to use those analytics also. We have activated Google analytics along with Sitecore analytics. But in some of the functionalities they want to add more customization in google analytics in the user journey.

To integrate Google Analytics into your website you will need a google account which is a must.

So, sign in / sign up with a google account and go to the tps://analytics.google.com link to integrate google analytics. Now you need to create an account for your site so click on start measuring and you will get the below the page.

google-analytics-custom-implementation-1

In the account name field insert your account name and select the checkboxes according to your website and press next to move on to the next step.

In the second step, you will have to create a property name. The property name could be your domain name or organization name but it would be much more specific if you assign a domain name Demo.com then the property name should be demo.

After that you need to select the time zone so that you are comfortable in tracking the activity as per your timing.

Same as that, you will also need to select the currency you use so that it will show you the revenue and other details into analytics.


google-analytics-custom-implementation-2

Once you done with that, press Next to move on to the final stage.

In the final stage you will need to provide your business information so provide the data according to your business and press create.

google-analytics-custom-implementation-3

Once you click on the create button you will get to confirm the google T&C to use that functionality. If you agree with that you can click I agree and if you don’t then it will not allow you to create analytics.

google-analytics-custom-implementation-4

Once you accept the terms and conditions, your account will be created and your screen will look like the below screenshot.

google-analytics-custom-implementation-5

Still if your analytics are not bound to your site or product then you need to setup the analytics to your site. For that process you will need to click on product for which you want to integrate analytics.

I’ve to integrate into my website so I’ll simply click on Web and once I click on that the below screen will appear.

google-analytics-custom-implementation-6

Now you just need to provide your domain name and stream name and from the measuring you will get the events measuring setting which you can keep if you need or else you can off that event but I suggest to keep all On.

Now create the stream by clicking on Create Stream.

Once you create the stream you will get the below screen in which you will find unique stream id and measurement ID.

google-analytics-custom-implementation-7

At the final stage you will need to insert the script to your website so google can track the activities which are happening on your website and send it to analytics.

To do that go to the View tag Instruction from the same page .

google-analytics-custom-implementation-8

Once you click on the view tag instruction you will get two options as mentioned in the below screenshot

google-analytics-custom-implementation-9

If your site is made from an online platform like mentioned above you will have to select your platform or else you can simply go to install manually and it will provide you the script to set into your webpages .

google-analytics-custom-implementation-10

Once you add this script to your pages, you will start receiving the tracking events in your analytics.

Is it possible to send the custom fields?

Yes of course google analytics is providing custom field implementation by google analytics dataLayer Event

To integrate it, you will need to follow these steps first from the tag manager https://developers.google.com/tag-platform/tag-manager/web

My requirement is to bind the custom like logged in user Id so I just send the dataLayer to the analytics eg.

dataLayer.push({“user”: “Joel”, “userID”: “s12237998”})

Recent Posts