I had this question regarding Campaign Codes in CQ5/AEM5.6
If you create a Vanity URL, is it possible to add a Google Analytics Campaign code to the referred URL?
If the user lands on http://mysite.com/myvanity
Can this be configured to forward to something like
BTW - I am assuming that the "something" is not dynamic, and will not be passed by the Dispatcher to the Publish server to preserve caching at the webserver.
I expect that it is possible, by using a Map or similar - can someone please confirm my hypothesis?
At web server You can write a rewrite rule to add Campaign code.
If you can use CQ site catalyst integration then it should already be tracking the vanity requests.
You can try with http://sling.apache.org/site/mappings-for-resource-resolution.html