I've been out of the game for a few years and I can't remember how to best do this, nor can I find an answer online.
I want to track the links from an ebook. Some of the links will go to my website and some will go to third-party sites. Once the book is released, I'll have no way to change things so I need to ensure it's a viable and long-term solution.
I was thinking of doing 301 redirects but I don't know if that's the best way, and I don't know if AWSTATS will track them granularly so I can tell where the clicks are coming from.
For instance in the book:
hyperlink 1:
https://mysite.com//redirect/bestsupplements?=page10
>> which 301's to mysite.com/landing page 1
hyperlink 2:
https://mysite.com//redirect/bestsupplements?=page20
>> which 301's to mysite.com/landing page 1 (yes the same landing page but I want to track the CTR of different links on different pages of the book.)
or
hyperlink 3:
https://mysite.com//redirect/favoritebooks?=page50
>> which 301's to mysite.com/landing page 2
or
hyperlink 4:
https://mysite.com//redirect/someotherwebsite?=page70
>> which 301's to someothersite.com
Would 301s be the best way to track this? Would Awstats read them all as separate pages so I could see which pages of the book generate clicks? I think that the different query strings ( ?=page20 ) are read separately by awstats.
Any help is appreciated!