Attached data from Web page to ORS Engagement strategy

Hi guys,

can anyone please help with an problem I have with the web engagement strategy?
I need to send a specific custom page ID from the web page to the ORS engagement strategy either as a specific KVP or in the jsonEvent key but I can seem to find how this is done. I have the initial _gt.push([‘config’… in the instrumentation script where dslResource, httpEndpoint, etc is being sent. Can I put one more data here and somehow catch it on the other side (ORS strategy)?

Thanks,
vma

If the custom PageID is accessible through the DOM you can easily use the DSL for that. In other cases, you have to send these data directly from front-end web pages through available API as is described in documentation.

Hi Kubig,

in dsl I have a basic 30 secs timeout event

How do I declare here a custom data? and how can I retrieve this in the routing? The data is available through DOM so this is not a problem.
I can’t find this process described in the documentation.

Thank you,
Mihai

Hi vma,

Look at GWE API Reference, section Business Events DSL, element. There is even a sample in the guide.

R.

Thanks Rene,
that helped alot somehow I missed that chapter.
Now I added an attached data to the dsl event and I can see it in GWE and routing but without any value. I tried for the sake of testing with a hardcoded value:

Still in jsonEvent:
Engagement Profile [305ddc74-ae41-4736-b078-9bfe96994052] was updated with UserData [{"HotLead_globalVisitI… "webreason":"","ixnType":"proactiveChat" …}]

Do you know why the attached data is being transmited without the value?

Thanks,
vma

My test GWE is down at the moment so cannot test it. However, documentation says that “Its value can be any JavaScript code which returns a serializable object”. It means that server probably treats xxx as an object. I would enclose the value by apostrophes so it’s treated as string and not as an object:

R.

Or maybe {}?

This was it! Using apostrophes did the trick!

Thanks a lot René!