Mapping URL parameter to attribute
I need a way to pass along the Google ID (gclid) from a URL to our CRM. When I filter conversations by gclid url parameter I can see that conversations are coming through. How can I get this information passed to our CRM.
I thought I could create a custom attribute called gclid (which I did) and then map the URL parameter to that attribute, so I could then map it to a field in our CRM. I can't figure out how to get a URL parameter to write to a custom attribute field in Drift though.
Comments
Hmm this is interesting. One thing you could try is with javascript getting the value from the url and setting the custom user attribute in Drift. I haven't tested the code below but something like the following should work:
If you're not comfortable editing the javascript, i'd hand it off to a developer. The main the issue with this will be is that it wont sync the data until the playbook is closed (I believe). But it's worth testing out.
Hi Stephanie, in drift there is a field called "Recent Conversation Started Page URL" which store the full URL (including utm and gclid, marketo token link, etc.), I wonder if you can map that field into a SFDC long text field, and then create a custom formula in SFDC that find and parse the gclid?
@jdewolf I honestly didn't even know you could modify or inject your own JS into Drift. I'll have to take a look at this for future.
@[email protected] That is a good idea. I mapped that url to our Marketo instance so I can pull out the gclid from that.