Hi,
I'm looking to tracking click interaction with elements on my homepage using CSS selectors.
I can see the option for a rule in Launch based on click but unsure what syntax to specify under "Elements matching the CSS selector".
The selector I'll be looking for interaction on is <div id="addButton"> or <div id="minusButton">.
Thanks,
James
Solved! Go to Solution.
Views
Replies
Total Likes
It's just looking for a basic selector, the same you would use with document.querySelector() or document.querySelectorAll(). For the two DIVs in your question, since they have unique IDs (at least, the IDs should be unique on the page), you can use #addButton and #minusButton, respectively.
More on selectors here.
It's just looking for a basic selector, the same you would use with document.querySelector() or document.querySelectorAll(). For the two DIVs in your question, since they have unique IDs (at least, the IDs should be unique on the page), you can use #addButton and #minusButton, respectively.
More on selectors here.
Thanks @Brian_Johnson_, managed to get to work.
How would I go about passing the name of 'Add' or 'Subtract' to Analytics, ie. Add used, to the custom link report?
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@yuhuisgmany thanks for your reply. Where would I specify %this.@text%? I tried putting it in Custom Link - Link Name for the beacon I'm sending.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
I should mention there is no text for Add and Subtract, they are images.
Is there a way to pull the value xyz from <div id="xyz"> ?
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Like
Replies