How to Track Likes and Tweets in Google Analytics

How to Track Likes and Tweets in Google Analytics

If you’ve implemented social sharing buttons (“Like This Page” or “Tweet This”) then you’re probably wishing you could track these metrics inside your analytics account.

Here I’m going to show you how to do it, in English and not techno-babble (though I am assuming you have a basic understanding of HTML).

Step 1:

Insert this file Social Tracking.js on every page of your website, right after your regular Analytics code.

How to include a JavaScript file:

A word of warning – in order for this to work, your share buttons need to look like this when you view your source code

 

Facebook:

Twitter:

Step 2:

Insert the following code straight after the file from Step 1:

This initializes our tracking so it actually goes into Google Analytics.

Step 3:

Watch as Analytics begins to show you how many Likes/Unlikes/Shares and Tweets your site is generating.

The official Google documentation is here: Official Docs

E-Web Marketing
Follow us

E-Web Marketing

We’ve been in the digital marketing field for over 18 years and worked with hundreds of Australian (and international) businesses to grow their web presence. Specialising in SEO, search ads (PPC), social media, content marketing, email marketing and conversion rate optimisation.
E-Web Marketing
Follow us

Latest posts by E-Web Marketing (see all)

E-Web Marketing

We’ve been in the digital marketing field for over 18 years and worked with hundreds of Australian (and international) businesses to grow their web presence. Specialising in SEO, search ads (PPC), social media, content marketing, email marketing and conversion rate optimisation.

1 Comment

Post a Comment

Comment
Name
Email
Website