Consider a website with these three pages:
<!-- example.com/shirts --> <body> <a href="amazon.com/red-shirt"> <a href="amazon.com/blue-shirt"> <a href="amazon.com/fabric-cleaner"> </body> <!-- example.com/pants --> <body> <a href="amazon.com/black-pants"> <a href="amazon.com/gray-pants"> <a href="amazon.com/fabric-cleaner"> </body> <!-- example.com/socks --> <body> <a href="amazon.com/tube-socks"> <a href="amazon.com/crew-socks"> <a href="amazon.com/fabric-cleaner"> </body>
Each page contains some Amazon links. Some of the Amazon links appear on multiple pages, while others appear on only a single page.
How can I set up Google Tag Manager and/or Google Analytics in such a way that I can see how often each link was clicked on a per-page basis?
My end goal is to be able to compile a report in this format:
example.com/shirts: Amazon links were clicked a total of 167 times amazon.com/red-shirt was clicked 63 times amazon.com/blue-shirt was clicked 92 times amazon.com/fabric-cleaner was clicked 12 times example.com/pants: Amazon links were clicked a total of 101 times amazon.com/black-pants was clicked 51 times amazon.com/gray-pants was clicked 39 times amazon.com/fabric-cleaner was clicked 11 times example.com/socks: Amazon links were clicked a total of 111 times amazon.com/tube-socks was clicked 38 times amazon.com/crew-socks was clicked 39 times amazon.com/fabric-cleaner was clicked 34 times
And also a report in this format:
amazon.com/red-shirt: 63 total clicks 63 clicks on example.com/shirts amazon.com/blue-shirt: 92 total clicks 92 clicks on example.com/shirts amazon.com/black-pants: 51 total clicks 51 clicks on example.com/shirts amazon.com/gray-pants: 39 total clicks 39 clicks on example.com/shirts amazon.com/tube-socks: 38 total clicks 38 clicks on example.com/shirts amazon.com/crew-socks: 39 total clicks 39 clicks on example.com/shirts amazon.com/fabric-cleaner 57 total clicks 12 clicks on example.com/shirts 11 clicks on example.com/pants 34 clicks on example.com/socks
I've set up some Variables and Events to the point where I can see how many total Amazon links are being clicked on my site and how many clicks happen on each page, but I can't figure out how to break them down by link.