Re: Tracking Opt-In Source (LP Name)

Anonymous
Not applicable

If an existing lead in our database checks an Opt-In box on a form (setting Opt-In to True), how can I populate an Opt-In Source field with the name of the LP?

I can see it in the Reason field in the "Change Data Value" activity in the activity log but cannot figure out who to pull this information out in, say, a token.

pastedImage_0.png

I.e., here's what I have in mind:

Smart List Trigger: Data Value Changes->Opt-In

Contraints:

- New Value->True

- Source->Web form fillout

Flow:

Change Data Value->Attribute->Opt-In Reason

New Value = {{Token that Captures the info in that Change Data Value Reason Field}}

Is there some way to do that?

11 REPLIES 11
SanfordWhiteman
Level 10 - Community Moderator

{{Trigger.Web Page}} is the URL of the page hosting the form.

Anonymous
Not applicable

Tried it again in case I had somehow input the token incorrectly but no - that doesn't work. Marketo says the token is invalid. And the only options that populate automatically in the flow step are {{trigger.name}} which populates as "Opt-in" and {{trigger.trigger name}}, which populates as "Change Data Value."

SanfordWhiteman
Level 10 - Community Moderator

{{Trigger.Web Page}} only makes sense if the trigger is Fills Out Form. That's where you use it.

Anonymous
Not applicable

Right. I need something that will work with Data Value Changes. Because with Fills Out Form I don't know if that's how Opt-In came to be changed to true. In other words, ideally I'd want a feature Marketo doesn't offer - which would be Filled Out Form->Changed Field on Form to->value. Do you have another way that you would recommend? For CASL and other opt-in country laws, I'm looking for a means of populating Opt-In Source with the name of the page with the form where they opted in.

(Is there no way to capture the data in that "reason" field inside the Data Value Changes activity from a Smart List?)

SanfordWhiteman
Level 10 - Community Moderator

The first time you trigger on Fills Out Form, Opt-In is true, and the Opt-In Source is empty, then by extension {{Trigger.Web Page}} is the source of the current value.

There are other ways to do it as well, but why not this setup?

Anonymous
Not applicable

Yes,you're right. That would work. And it has the added advantage of working if the form fill is the method by which the lead comes into the database (where there is no Data Value Changes activity).

Thanks, Sandy!

Anonymous
Not applicable

Denise and Sanford,

That wouldn't work if a lead has already an opt-in value of true. How can you differentiate that the opt-in was from that form? For old records, what if a lead had previously opt-in from another source and has an empty opt-in source value? You would incorrectly assume that the opt-in came from filling out the form.

Lauren_Aquilino
Level 4 - Champion Alumni

You can also add on filters of "data value was changed" and "lead was created" (with "or" logic) plus some date constraints you are comfortable with which will allow you to only focus on new opt ins.

Denise_Greenb12
Level 7

Diego - your icon says you are "deactivated" so I'm not sure you're still there. I normally agree with Sandy and he's right that you are changing the parameters of the question. But I would address your modified question in a different way (and I think it's a valid question). If you previously had an "Opt-In" field but no "Opt-In Source" field - the scenario you describe could definitely occur. So what I would do is populate the Opt-In Source field with "Unknown" or "Prior to <Date>" or something like that for any people where Opt-In was True and Opt-In Source was empty. Then going forward the value in the Opt-in Source field will be correct. If you want to then backfill it for your older people, that's an exercise you'd have to figure out how best to accomplish given whatever data you had available to you.

SanfordWhiteman
Level 10 - Community Moderator

Well, you're changing the parameters of the question, so it has a different answer.

Why would the lead not have an opt-in source value in your scenario, yet have previously opted in? That sounds like bad design and a contrived exception.

Anonymous
Not applicable

I tried that and got an invalid trigger error. Perhaps I'll try again.