Blog

Learn about new releases, tips & tricks
  • Written by
  • Hits: 668

Joomla 4 tutorials : How to add Google Analytics Tracking Code

How to add Google Analytics Tracking Code

Google Analytics plays an important role for the website owners to know about the websites pages pageviews, bounce rate, session. It will give an accurate state of the pages and also help to track the data. In this blog post, we will discuss how to add google tracking code to Joomla 4 Cassiopeia template.

1. For Google analytics, the first step is to create an account on Google Analytics website Here & Generate the tracking code.

Google Analytics Tracking Code in Joomla

2. Go to Joomla admin > Extensions > Templates > Templates > cassiopeia

add Google Analytics Tracking Code

3. Open the template files by clicking on template name. It will give a list of files to edit via Joomla editor. Or open index.php file via FTP.

4. Open index.php file and add the Google analytics code before closing Tag.

Google Analytics Tracking Code

5. Save the file and clear Joomla cache

Google Analytics Tracking Code

For T3 framework templates:

If you are using T3 framework template and want to add Google analytics.

Open template manager > Template style > Custom code tab then add your Google Analytics

How to add Google Analytics Tracking Code

More Information on Joomla 4 here :

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW