At the moment this looks like it inherits the default value (1 year) - and it is possible to change this - by releasing a new AMP version of the Snowplow tracker.
This doesn’t look particularly difficult (add cookieLifetime as a new variable to the template) so someone on the Snowplow team might be able to pick this up (@Colm maybe?) - I’m not sure if AMP allow PRs outside of the vendor.
Thanks @capchriscap for raising this.
We are happy to implement this change, as Mike said, the AMP tracker is different from the other trackers where we would be more than happy of receiving external PRs.
We’ll give a look next week. I’ll keep you in the loop!
Hey @capchriscap, we revisited again this issue and seems it needs a bit more work to get the cookie-writer to expand values. (Even for allowing the client to add the cookieMaxAge, it would require the use of DEFAULT)
What we can do for now is push for this feature on the amphtml main repository issues and see if we can get this going. We are also keeping this in our backlog so as to revisit
If you have any other solution in mind that can help with your use-cases, we would be happy to assist.
Since there has not been any movement on this, I want to revive this topic.
Depending on the individual setup, this can be a GDPR issue and should be considered by at least all European companies using Snowplow and tracking AMP pages.
To my understanding, without a fix for this, it is only allowed to track users on AMP pages after they have given explicit consent due to a cookie duration of 1 year. A workaround like setting a cookie duration for only a session length is not possible without this fix.
So, depending on your traffic mix, you might be missing out a decent chunk of your tracking data or set the cookie without the proper consent.
I’d be tempted to bump the AMP tickets again and see if they get any traction. My not-particularly-in-the-know opinion is that AMP isn’t getting pushed as hard anymore by Google and with more and more publishers disabling or removing AMP entirely I’m not sure where the priorities sit for these sorts of things. I think it’s still worth pushing but I’m not sure when the changes might get made.