Sending pageType and pageName to DataLayer

1.1k Views Asked by At
  1. I would like to push

an individual page name for every page on my website (Home, Product Page Product A, Productpage Product B, Category Page Products A-C)

and a general category (Home, Category, Cart, Productpage)

into the DataLayer with pageName and pageCategory.

  1. For now, we work with Typo3 and an extension from our tracking tool to name pages and categories individually.

  2. We dislike this tracking tool and want to change to Google Analytics, so we would also get rid of the extension.

How is an individual page name and category usually set for every page? How to set and pull those two efficiently?

1

There are 1 best solutions below

4
On

Each record is individually in TYPO3 as it is referenced with an uid.
Your pages have an uid and also your categories.

Also your pages can (should) be uniquely identified by the full path (URL). The same for categories: if you disentangle the tree you should get unique category-pathes.

So you can use the uids you can't see the hierarchy in any analytics tool (or at least you need to add the hierarchy information).
If you use the pathes it should be possible to split/group the accesses in the same way as the hierarchy is given in the pathes.