Events Issue in WebSDK Implementation | Community
Skip to main content
Level 2
September 9, 2024
Solved

Events Issue in WebSDK Implementation

  • September 9, 2024
  • 1 reply
  • 2416 views

Hello Experts,

 

I am facing one weired issue. This is regarding DOM Ready events that i am firing in WebSDK platform.

Suppose i have 3 different rules which are setting different Events. One is event1, Second rule is setting event2 and 3rd rule is setting event3.

 

Now when i send this data to Platform using Sendevent. What i see only the event which is part of Latest rule is there not the other 2. I am using Data Object for using Data Collection. Any help will be really appreciated.

 

Thanks,

Nitin

Best answer by bjoern__koth

Hi @nitinct 

that is actually a valid point, there is no apl plugin for Web SDK yet.

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/apl

 

But this doesn't keep us from using it 😉 At least not me.

What I typically do to counteract shortcomings and introduce new functionality is to extend the _satellite object in a rule that is loaded when the library loads.

 

 

and in there, I just copy+paste the code of the plugin.

 

Important: since it is an event at the end of the custom code, call

trigger();

 

and in the Web SDK update variable, you

content.__adobe = content.__adobe || { }; content.__adobe.analytics = content.__adobe.analytics || { }; let s = content.__adobe.analytics; // add your new event s.events = _satellite.apl(s.events, "event9999")

 

 

1 reply

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
September 9, 2024

Hi @nitinct 

are you talking about the "events" variable in the data object e.g.?

data.__adobe.analytics.events = "event1";

 

When you look at the network traffic (filter for /ee), and expand your network requests, do you actually see your payload being set properly?

 

Cheers from Switzerland!
NitinCTAuthor
Level 2
September 9, 2024

Hi @bjoern__koth ,

 

I am using the default variable Editor provided in Data Collection:

And Payload is loading properly(All eVars and Props from all rules are coming) only events is facing issue.

If i go with custom code route like 

data.__adobe.analytics.events = "event1";

Then do we have any function like s.apl to be used with WebSDK?

 

Thanks,

Nitin

bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 9, 2024

Hi @nitinct 

that is actually a valid point, there is no apl plugin for Web SDK yet.

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/apl

 

But this doesn't keep us from using it 😉 At least not me.

What I typically do to counteract shortcomings and introduce new functionality is to extend the _satellite object in a rule that is loaded when the library loads.

 

 

and in there, I just copy+paste the code of the plugin.

 

Important: since it is an event at the end of the custom code, call

trigger();

 

and in the Web SDK update variable, you

content.__adobe = content.__adobe || { }; content.__adobe.analytics = content.__adobe.analytics || { }; let s = content.__adobe.analytics; // add your new event s.events = _satellite.apl(s.events, "event9999")

 

 

Cheers from Switzerland!