Best practice for setting a landing page cookie, that will be read later on conversion page to send conditional tag?

Gold Contributor
Gold Contributor
Noob here! Want to set a persistent cookie (30 days?) for visits on a page_type with a specific URL parm value on landing page. Cookie will be used later to fire a conversion tag. I see the Persistent Variables extension, which looked like a good candidate, but wondering what best practice is for this (could also write own JS code)? Thanks
2 REPLIES 2

Best practice for setting a landing page cookie, that will be read later on conversion page to send conditional tag?

Tealium Employee
John, The Persist extension has been created for this very same reason. Here are the steps: * Define your condition (i.e. the presence of query parameter on the landing page) * Create a new variable within the Persist extension that will store the stage (under "Store in Cookie") * Define your Duration (would be 30 days) * You can then define whether you want to set a text value to the cookie you create in step 1 or persist a JS variable that you create beforehand Once done, your load rule for the tag will be something like page=thankyou AND the presence of the persistence rule you created with the extension. Hope this is helpful.

Best practice for setting a landing page cookie, that will be read later on conversion page to send conditional tag?

Gold Contributor
Gold Contributor
Thanks - this makes sense.
Public