@weshancock1981
You should indeed be able to do it all of this via the utag.link call, however saying that I'm slightly confused if you say you are getting a double call. Just to clarify, if you have the JS extension scoped to the Adobe tag (which is UID #3), and also send a utag.link with [3] that will trigger the same tag to do 2 link events.
You can pass all the data that you are setting in the anonymous function through to the utag link, and then just map the data to the tag, using the mappings screen.
var facebookShare = document.getElementsByClassName('fb-social social-btn')
for (var i in facebookShare) {
facebookShare[i].onclick = function () {
//Tealium Code
utag.link({
action: "facebookShare",
eVar32 : 'facebook-event',
prop32 : 'facebook-event',
events : "event19"
},null,[3]);
};
};
I would also maybe think about moving this out of the scope of the tag, as this function will only run once the tag has been called once (most likely pageview). DOM Ready might be a better scope.
Adrian
... View more