Google Analytic Tracking Code

Ask Enigma Premium Theme Installation, Settings & Configuration, Problem, Error & Bug Related Issues Here

Moderator: forum_m

Post Reply
raunc90
Posts: 12
Joined: June 27th, 2016, 6:58 pm

Google Analytic Tracking Code

Post by raunc90 » April 27th, 2018, 12:26 pm

Hey!

I can't get Google Analytic Tracking Code working. I copied the scripting code without script tags:

window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXXX-X');

Thanks!

support_staff
Posts: 7254
Joined: February 26th, 2015, 1:40 pm

Re: Google Analytic Tracking Code

Post by support_staff » April 27th, 2018, 1:11 pm

Hello,

use can use below code in header.php file after line no. 15 -
<script async src="https://www.googletagmanager.com/gtag/j ... "></script>

Thanks.

raunc90
Posts: 12
Joined: June 27th, 2016, 6:58 pm

Re: Google Analytic Tracking Code

Post by raunc90 » April 27th, 2018, 1:47 pm

It's working now!

Cheers!

support_staff
Posts: 7254
Joined: February 26th, 2015, 1:40 pm

Re: Google Analytic Tracking Code

Post by support_staff » April 27th, 2018, 1:51 pm

Let us know for further query.

Post Reply

Return to “Theme Installation, Settings & Configuration, Problem, Error & Bug”