href firing two events when using tel | Community
Skip to main content
October 19, 2020
Solved

href firing two events when using tel

  • October 19, 2020
  • 2 replies
  • 1854 views

hi all,

 

On my website I have an anchor tag that has a property href="tel:0111 111 111"

 

and using the google Chrome extension Omnibug, I can see that Adobe Analytics is firing twice on this event when this link is clicked. 

 

On another element I have, where the href="https://mywebsite.com", the event is only triggered once.

 

They're in separate divs but with the same class name, using the same js function. Everything is identical. After a trial-and-error investigation, I found the only difference is the tel: number inside the href. 

 

I've turned off the setting 'Show redirected entries' in case it was a redirect. I cannot see the data myself, but someone else has assured me that they are indeed seeing this double event within their analytics. 

 

I've also removed another element inside the div so that the anchor tag is the only element, to remove any possibility of bubbling events happening, but it still fires twice.

Ideally the href for tel should only fire once. 
Has anyone else come across this or have some ideas?

 

Thanks in advance

UPDATE to provide code (some edits to keep site private):

// this a tag triggers twice 
<div class="website-contact-icon">
        <a class="js-website-contact" href="tel:01111 111 111">
            <partial name="~/Views/Shared/Components/SVG/_IconWebsiteContact.cshtml" />
        </a>
</div>
//this a tag only triggers once
<div class="website-contact-icon">
         <a class="js-website-directions" href="@StoreDirections">
             <partial name="~/Views/Shared/Components/SVG/_IconWebsiteDirections.cshtml" />
         </a>
</div>

Note: the partial component is only a path for an svg file

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 customer_user44456656

RESOLVED - This is not actually a problem with analytics but instead, my javascript. For some reason I had another event listener for all href with tel that also fired the tracking. Facepalm. Thanks to all that commented

2 replies

Andrey_Osadchuk
Level 10
October 19, 2020

Have you checked whether the tel link click tracking was live before you added a dedicated rule (maybe the second event belongs to the exit link/ custom link tracking managed separately)?

October 19, 2020
I think the tracking was added after the original pages went live, but even if that was the case, it wouldnt explain why one anchor would do it twice and the other one only the once. I'll update my question to show the markup I have
customer_user44456656AuthorAccepted solution
October 19, 2020

RESOLVED - This is not actually a problem with analytics but instead, my javascript. For some reason I had another event listener for all href with tel that also fired the tracking. Facepalm. Thanks to all that commented