Skip to content

Help Center

Pull attribution data from the cookie

There are times when adding hidden fields to your forms isn’t the best approach for getting the attribution data from Attributer and into your CRM or database.

A common example of this is when you have a signup or registration form for a website or application that has social signin options (I.e. those buttons that allow you to signup to a website with your Facebook or Google account).

In this case, it’s possible to write some simple code to pull the attribution data from the cookie and pass it through to your CRM, database, etc as part of the signup flow.

How to access the attribution data stored in the cookie

On any page with the attribution script loaded you can access the attribution data in Javascript by using the attribute 

This has all the data usually accessible through hidden form fields. The structure is as follows: = {
   "firstVisitDate": DateTime,
   "referrerURL": URL,
   "landingURL": URL,   "lastReferrerURL": URL,
   "lastLandingURL": URL,
   "lastViewedURL": URL,
   "drillData": {
       "channel": string,
       "drillDown1": string,
       "drillDown2": string,
       "drillDown3": string
   "lastDrillData": {
       "channel": string
   "landing_page_group": string

The information you’ll need to extract from the cookie is as follows:

Attributer Property NameField in Attribution Cookie
Channel“channel”: string,
Channel Drilldown 1“drillDown1”: string,
Channel Drilldown 2“drillDown2”: string,
Channel Drilldown 3“drillDown3”: string
Landing Page“landingURL”: URL,
Landing Page Group“landing_page_group”: string

Can't find the answer you need? Contact us!

Our team are available to answer any questions you have

Support Images