I created three goals for the utility navigation floating on the right side:
Clicked on utility menu calendar icon
Clicked on utility menu email icon
Clicked on utility menu telephone icon
Each of them has a unique custom event action BUT whenever one is clicked on, it appears that all three goals are counted at the same time. Here’s one session log:
I think there is a problem with your triggers for those tags - you are using inner text as a parameter and “contains” rule in trigger.
When you click <div> element that contains all three buttons this technically equals true and is triggering event for all of them at once (because div contains all three inner text triggers).
Click Text Capturer contains email
Click Text Capturer contains 6145382808
Click Text Capturer contains Schedule a Call
(Note: “Click Text Capturer” is a JS variable that I added to the Piwik Pro tag manager based on another post here in the community since, unlike GTM, this is not native variable in PPTM:
function() {
e = window.event;
if (e && e.target && e.target.tagName !== “BODY”){
return e.target.textContent || e.target.innerText;
};
}
)
Correct, and if you click on the <div> frame instead of a buttons you are checking all of above click text capturers as true, because that <div> contains all of those three texts in buttons
Triggers need to be done in different way that separates them in more precise way.
You could try to set it up for Click Classes + equals + paste exact class of each button for each trigger. I would test it on mobile device just to be 100% sure if it’s firing correctly.
ie. class for calendar button: ls-action ls-action-T ls-icon-calendarday livesite-schedule ls-desktop ls-ab-action ls-theme-label
@David_Culbertson
I couldn’t find that exact class with inspector tool and I found out there are some additional spaces there, for example: ls-action ls-action-T ls-icon-calendarday livesite-schedule ls-desktop ls-ab-action ls-theme-label
and class in post above: ls-action ls-action-T ls-icon-calendarday livesite-schedule ls-desktop ls-ab-action ls-theme-label
Thank you! The click class triggers are now working but only time will tell if this resolves the multiple goal count issue.
For mobile devices, I’m not getting tracking. I’m guessing that within the click classes, “ls-desktop” id different. Maybe “ls-desktop” Unfortunately, I can’t find a straightforward way run an inspector console on iPhone/Safari. I did try switching Chrome’s inspector tools over to mobile, but that appears to just change screen size. On my iPhone, the utility menu is in a completely different location (bottom left of screen versus upper right on desktop)
Refresh the page and it should load a mobile layout.
Classes for mobile are different, and as you said it changes ls-desktop to ls mobile but few other classes are coded in other order compared to previous one: ls-action ls-actions-open livesite-call ls-action-T ls-icon-phone ls-visible ls-mobile ls-ab-open livesite-icon-phone ls-theme-label
If you want to be sure that it fires no matter what data is set in classes and you have access to the code you can add a dataLayer.push event and use it as a trigger for interaction instead.