Web SDK Guided Events hiding "Document will unload" checkbox? | Community
Skip to main content
bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 20, 2024
Solved

Web SDK Guided Events hiding "Document will unload" checkbox?

  • June 20, 2024
  • 1 reply
  • 1389 views

Hi team!

 

I just noticed that as soon as I am choosing a "Guided Event" in the newest Web SDK version, the "Document will unload" checkbox disappears.

Ideally, this should still be there to make sure that a custom link tracking can be sent through a beacon, or am I missing something?

 

Cheers

 

 

 

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 bjoern__koth

Hi @bjoern__koth 

Apologies I didn't noticed it is gone when guided events are enabled, however I've checked but didn't find much on guided events.

But as the description mentioned as "checking this will hide and fill certain fields automatically" so I don't think it will be a bug.

 

Please share if you're working on any use case around this.


Hi @ankit_chaudhary 

previously, I did a code-only integration of the call, which is also taking into consideration if a tracking request is causing a page unload.

 

When I saw the new feature, I assumed that I can get rid of my code altogether, but if there is no way to explicitly say that a call is going to unload the page, and hence the chance of an aborted request, it is of no use to me - unless the guided events are smart enough to determine it themselves and switch the transportation mode on the fly.

1 reply

Ankit_Chaudhary
Community Advisor
Community Advisor
June 25, 2024

Hi @bjoern__koth 

Sending custom link tracking calls does not rely on document unload it is used to make sure that your data will be send to adobe servers if you're redirecting quickly from one page to another however when document unload is checked you won't get a response back from the server that's why you'll see a collect call with no payload in it.

 

It relies on send beacon API to asynchronously sends a small amount of data over HTTP to a web server.

check this article for more details 

 

Also, it is incompatible with the render decision property I guess that's why it is being blurred out because guided event's automatically select the value for event type for send event action.

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 28, 2024

Hi @ankit_chaudhary 


the beacon functionality I know.

The "document will unload" checkbox is not grayed out, it is gone for guided events, especially for the Analytics setting.

 

So, I wonder whether this is a bug then.

 

Cheers

 

 

Cheers from Switzerland!
Ankit_Chaudhary
Community Advisor
Community Advisor
July 2, 2024

Hi @bjoern__koth 

Apologies I didn't noticed it is gone when guided events are enabled, however I've checked but didn't find much on guided events.

But as the description mentioned as "checking this will hide and fill certain fields automatically" so I don't think it will be a bug.

 

Please share if you're working on any use case around this.