I want to be able to track essentially whenever someone clicks on a link with the class .footer-social__item__link that I can pass a clean social network name back into their tracking which in this case would be just LinkedIn
In order to do that all I need is for you to add a custom data-attribute on the link element like so:
Right now in the global footer we have a bunch of social icons that link to OAF's various profiles like so:
Right now the code for that looks like the following (using LinkedIn as an example below) :
I want to be able to track essentially whenever someone clicks on a link with the class
.footer-social__item__link
that I can pass a clean social network name back into their tracking which in this case would be just LinkedInIn order to do that all I need is for you to add a custom data-attribute on the link element like so:
I can take care of the rest from there.