Data Elements - Javascript Variable Name | Community
Skip to main content
New Participant
April 29, 2020
Solved

Data Elements - Javascript Variable Name

  • April 29, 2020
  • 5 replies
  • 7433 views

Greetings fellow Launchers. Seeking guidance around the following.

 

I've got a property that includes periods. For some reason, when inserting the following into the Javascript Variable Name, Adobe isn't picking it up: dataLayer.adobeLaunch["test.workflow.name"]. However, when creating a data element and leveraging some simple code to capture this property and apply to a new variable, I'm able to build a comparison rule (condition) that recognizes that value being passed in dataLayer.adobeLaunch["test.workflow.name"]. Do I need to use a different notation or does Launch simply not recognize this sort of syntax? Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

Answer given in the comments of the original post:

 

 

 

 Jay-Evolytics 

Hey mattb, a little later here, but my bet is that Launch just doesn't accept this valid notation through it's GUI.

 

Out of curiosity though, is your Data Layer coming from the "Blend" mortgage application? That syntax is identical to what they use ...

 mattb89502451 
Thanks Jay. You got it - dataLayer stemming from the Blend mortgage app. For now, we're just going the custom code route. Seems silly that we can't use the notation referenced. Oh well
Jay-Evolytics 
Small world with Blend; I'm working with their Data Layer now as well 

 

 ... I agree with you on it being silly that the GUI can't handle it; that said, it must be super hard to cover all the bases, so I'll cut Adobe some slack for once 

 

5 replies

jantzen_b
jantzen_bAccepted solution
Employee
September 16, 2020

Answer given in the comments of the original post:

 

 

 

 Jay-Evolytics 

Hey mattb, a little later here, but my bet is that Launch just doesn't accept this valid notation through it's GUI.

 

Out of curiosity though, is your Data Layer coming from the "Blend" mortgage application? That syntax is identical to what they use ...

 mattb89502451 
Thanks Jay. You got it - dataLayer stemming from the Blend mortgage app. For now, we're just going the custom code route. Seems silly that we can't use the notation referenced. Oh well
Jay-Evolytics 
Small world with Blend; I'm working with their Data Layer now as well 

 

 ... I agree with you on it being silly that the GUI can't handle it; that said, it must be super hard to cover all the bases, so I'll cut Adobe some slack for once 

 

Jay-Evolytics
New Participant
May 19, 2020
Small world with Blend; I'm working with their Data Layer now as well 😄 ... I agree with you on it being silly that the GUI can't handle it; that said, it must be super hard to cover all the bases, so I'll cut Adobe some slack for once 😉
Jay-Evolytics
New Participant
May 19, 2020

... (double post; you're killing me forum)

New Participant
May 19, 2020
Thanks Jay. You got it - dataLayer stemming from the Blend mortgage app. For now, we're just going the custom code route. Seems silly that we can't use the notation referenced. Oh well
Jay-Evolytics
New Participant
May 19, 2020

Hey mattb, a little later here, but my bet is that Launch just doesn't accept this valid notation through it's GUI.

 

Out of curiosity though, is your Data Layer coming from the "Blend" mortgage application? That syntax is identical to what they use ...