Use GTM To Rename URLs & Page Titles in Google Analytics For Better Reporting

in #marketing5 years ago

It's been a while since I geeked out on Steemit, which was my original plan for the blog but it didn't really work out since not many people here are really that fond of digital marketing. I've also recently migrated our website from WordPress to a custom solution, so no @steempress to help me either.

Every so often I do come across a pretty cool digital trick or two and I'll share my experience or use cases for it. My latest find comes from Google Tag Manager which helps you kinda cover up any sinful mistakes you may be suffering from when tracking with Google Analytics.


Digital marketing is all about data and insights. If you cannot accurately evaluate and measure results, you will never know how to improve which will eventually catch up to you and leave room for your competition outperform you in critical areas. Which is why data scientists and data analyst positions have become such converted roles as they help weed through the mountain of data to find key insights.

One of the main reasons data analysis isn't always as useful as it should be is due to the input of dirty data. Depending on the seriousness of the crime it can take months to clean up a reasonable amount of data to pull out any relevant trends and even then you're dealing with a smaller sample due to the cleanup.

Since Google Analytics is usually the tracking tool of choice, the usual dirty data culprit in this tool is the recording of poorly structured or non-descriptive URLs and even in some cases page titles too. There are very few websites that give their URL structure much thought, and it naturally hurts them when it comes to reporting with Google Analytics.

Reporting tends to suffer from poor URL structure

Usually, sites who are committed to change often have to bite the bullet and revamp their entire URL structure or require dev for URL rewrites which often means SEO needs to get involved with a URL clean up which can get messy.

Thankfully Google has realised that sites don't always consider SEO and URL best practices when creating a website, so they've given us the option of rewriting URLs in Google Tag Manager.

Why would you want to rewrite your URLs

There are many reasons you may want to revise your URL's, and all of them stem from CMS limitations. No CMS is perfect, and neither is their ULR structures especially when you weren't the one to plan out the URL structure from the beginning.

Your URL's and subfolders may not reflect the way your content is hosted, or you may be running encoded URLs, which can well cause pain for any digital marketer trying to extract reports.

Secondly, Google Analytics is a page view tool by nature and it simply basis it's tracking each time a traditional URL is loaded into the browser, so it may not always be suited to how you want to structure your data or your reporting.

Popular reasons why you would rewrite your URLs

  • URLs are not descriptive
  • URLs are encoded
  • URL's have a poor structure or no apparent structure
  • URL's don't change as with Angular JS and React JS front ends
  • How to rewrite your URLs with GTM
  • Head over to Google Tag Manager
  • Create a new tag by clicking "NEW."
  • Provide a name for your tag IE - Blog Search URL Rewrite
  • Select Google Analytics - Universal Analytics Tag
  • Set Track Type to "Page View"
  • Check the box that says "Enable overriding setting sin this tag."
  • Include your Google Analytics tracking ID
  • Click on the drop-down menu that says "More Settings."
  • Then click on the drop-down menu that says "Fields to Set."
  • Under field name select page
  • Add the URL structure you want as a rewrite
  • Click "Add Field"
  • Select the filed name title
  • Add the title structure you would like to see in google analytics
  • Set your trigger
  • Click save & publish

Note:

This will affect your page view count by adding a duplicate pageview to your account, so if this bothers you, you may need to add an additional step to not fire your standard pageview tag on those affected URLs.

I personally don't mind since they can always be filtered out in reporting with a simple Regex filter.

Protip! This workaround is ideal for complex search URLs and making sure Google understands and captures all internal search queries performed on your site. We currently use it on nichemarket and it works really well.

Rewrite the wrongs of the past

Now that you can accurately categorise your data in Google Analytics it will become a pleasure to work through. Whether you're running reports in Data Studios, third-party tools or merely good old excel.

Making sure your data is cleaner will save you so much time and help you gain better insight into how users navigate and use your website.

Source: nichemarket

Have at it

Do you use Google Analytics and Tag Manager? Are there any tips you would like to share? Is there anything you struggle with when using these tools? Let me know in the comments

Let's connect

If you liked this post sprinkle it with an upvote or resteem and if you don't already, consider following me @chekohler
follow me


Get Daily Upvotes With SmartVote

Member of the SmartVote community

Trade Bitcoin, Ethereum, Litecoin, Doge or Dash for STEEM instantly

Check out blocktrades to quickly exchange popular cryptocurrencies for STEEM, STEEM power or STEEM Dollars or trade your STEEM, STEEM power or STEEM dollars for popular cryptocurrencies


Sort:  

Congratulations @chekohler! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You got more than 5000 replies. Your next target is to reach 5250 replies.
You received more than 1000 as payout for your posts. Your next target is to reach a total payout of 2000

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:

SteemWhales has officially moved to SteemitBoard Ranking
SteemitBoard - Witness Update

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by cesc04 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Congratulations! Your post has been selected as a daily Steemit truffle! It is listed on rank 20 of all contributions awarded today. You can find the TOP DAILY TRUFFLE PICKS HERE.

I upvoted your contribution because to my mind your post is at least 6 SBD worth and should receive 196 votes. It's now up to the lovely Steemit community to make this come true.

I am TrufflePig, an Artificial Intelligence Bot that helps minnows and content curators using Machine Learning. If you are curious how I select content, you can find an explanation here!

Have a nice day and sincerely yours,
trufflepig
TrufflePig

Hi, @chekohler!

You just got a 4.11% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @chekohler!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 3.715 which ranks you at #5114 across all Steem accounts.
Your rank has improved 231 places in the last three days (old rank 5345).

In our last Algorithmic Curation Round, consisting of 346 contributions, your post is ranked at #95.

Evaluation of your UA score:
  • You're on the right track, try to gather more followers.
  • The readers like your work!
  • Good user engagement!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.25
TRX 0.11
JST 0.033
BTC 63157.91
ETH 3096.77
USDT 1.00
SBD 3.91