Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

navigator.sendBeacon

Avatar

Avatar
Boost 5
Level 2
AnduCrandu
Level 2

Likes

10 likes

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Boost 5
Level 2
AnduCrandu
Level 2

Likes

10 likes

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
View profile
AnduCrandu
Level 2

24-08-2017

Will Adobe Analytics ever use navigator.sendBeacon() to help send tracking calls before page unload more consistently?

For browsers that support it, of course

Navigator.sendBeacon() - Web APIs | MDN

11 Comments

Avatar

Avatar
Ignite 5
Level 2
ltaparia
Level 2

Likes

5 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Give Back 10
Ignite 3
Give Back 5
Give Back 3
View profile

Avatar
Ignite 5
Level 2
ltaparia
Level 2

Likes

5 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Give Back 10
Ignite 3
Give Back 5
Give Back 3
View profile
ltaparia
Level 2

16-07-2019

ursboller​ Can you please help me to get this done? I want to send image beacon to Omniture when a user is intending to close his web page.

Avatar

Avatar
Coach
Community Advisor
ursboller
Community Advisor

Likes

529 likes

Total Posts

1,023 posts

Correct reply

257 solutions
Top badges earned
Coach
Bedrock
Contributor 2
Originator
View profile

Avatar
Coach
Community Advisor
ursboller
Community Advisor

Likes

529 likes

Total Posts

1,023 posts

Correct reply

257 solutions
Top badges earned
Coach
Bedrock
Contributor 2
Originator
View profile
ursboller
Community Advisor

16-07-2019

can't do a lot, just hoping for a lot of votes myself  

Avatar

Avatar
Ignite 5
Level 2
ltaparia
Level 2

Likes

5 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Give Back 10
Ignite 3
Give Back 5
Give Back 3
View profile

Avatar
Ignite 5
Level 2
ltaparia
Level 2

Likes

5 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Give Back 10
Ignite 3
Give Back 5
Give Back 3
View profile
ltaparia
Level 2

16-07-2019

Sure, I will upvote once you help me with a solution 🙂

Avatar

Avatar
Coach
Community Advisor
ursboller
Community Advisor

Likes

529 likes

Total Posts

1,023 posts

Correct reply

257 solutions
Top badges earned
Coach
Bedrock
Contributor 2
Originator
View profile

Avatar
Coach
Community Advisor
ursboller
Community Advisor

Likes

529 likes

Total Posts

1,023 posts

Correct reply

257 solutions
Top badges earned
Coach
Bedrock
Contributor 2
Originator
View profile
ursboller
Community Advisor

16-07-2019

don't have a solution (yet). best would be to have an official function to use. or maybe someone writes an Launch extension for that?

Avatar

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
justin_grover
Employee

22-07-2019

Thanks for the feedback. We will continue to look at this. Browser support is such that this makes a lot of sense now.

Avatar

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
justin_grover
Employee

19-08-2019

Good news. The latest version of AppMeasurement will use sendBeacon for ExitLinks.

Release Notes - AppMeasurement for JavaScript

There are some oddities with sendBeacon that make it tricky to use more often (e.g. Size limits per session, Number of requests active at a single time and such).

Avatar

Avatar
Coach
Community Advisor
ursboller
Community Advisor

Likes

529 likes

Total Posts

1,023 posts

Correct reply

257 solutions
Top badges earned
Coach
Bedrock
Contributor 2
Originator
View profile

Avatar
Coach
Community Advisor
ursboller
Community Advisor

Likes

529 likes

Total Posts

1,023 posts

Correct reply

257 solutions
Top badges earned
Coach
Bedrock
Contributor 2
Originator
View profile
ursboller
Community Advisor

19-08-2019

does that mean a change in how the "exitlink" tracking works? do we need to pay attention in our current implementation (especially how much data we add to the exitlink tracking beacon)?

Avatar

Avatar
Ignite 5
Level 2
ltaparia
Level 2

Likes

5 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Give Back 10
Ignite 3
Give Back 5
Give Back 3
View profile

Avatar
Ignite 5
Level 2
ltaparia
Level 2

Likes

5 likes

Total Posts

29 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Give Back 10
Ignite 3
Give Back 5
Give Back 3
View profile
ltaparia
Level 2

19-08-2019

Thanks justin_grover​ for the update.  Can you please let me know, how reporting side is impacted with this? When I was quering about this, my objetive was to identify visitors(for retargeting) as soon as they leave our site irerespective of session status?

Avatar

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
justin_grover
Employee

04-09-2019

@ursboller and @itaparia You shouldn't need to pay any special attention to exit links other than what you are currently doing. The limit is most browsers enforce is that you can only have 64k of stuff queued in sendBeacon (See the spec). This is usually not a problem for most exit links but can become a problem for other tracking scenarios (especially in offline mode of a PWA). With our new implementation the only effects should be exit links should unload slightly faster and the data transmission is slightly more reliable.

Avatar

Avatar
Ignite 1
Level 1
charism51522941
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile

Avatar
Ignite 1
Level 1
charism51522941
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile
charism51522941
Level 1

16-09-2019

Thanks Justin for the update.

Is it possible to configure sendBeacon for custom link server calls? There are cases (i.e. CTA links which transition visitors to pages under the same domain) that sendBeacon would be useful in order not to miss traffic. I know that we can use navigator.sendBeacon but this requires to generate the URL and data of the server call before calling it. Is there any function in the AppMeasurement JS object which can do this?

The AppMeasurement object also has a property called useBeacon (s.useBeacon) which is set to 0. Do we need to apply any configuration on the value to enable sendBeacon for exit Links?