I need to tracking some User data for each post tag. For this, I'm using Google Analytics and Google Tag Manager. The dataLayer looks like:
{
"pagePostType":"post",
"pagePostType2":"single-post",
"pageCategory":["ha-kidd-knitting-supplies"],
"pageAttributes":["big-time-yarn","charles-voth","classic-shades","easy-knits","km066","knitted-cowl","textured-cowl","universal-yarn"],
"pagePostAuthor":"Charles Voth"
}
The pageAttributes
key contains the tags.
How can I track all these tags without use dot notation? The posts could have 1, 2, 3, 4... or more tags, so I can't use dot notation.