This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
Trigger tag on WooCommerce affiliate link click #121
Unanswered
becausebirds
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @becausebirds, are you able to share screenshots of the platform along with scripts you are trying to fire? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I've spun up a self-hosted Scale8 install. I'm trying to fire a tag when a "cart" button is clicked on one of my affiliate products on my website.
The button has a class of "single_add_to_cart_button" and I created a tag in Scale8 with a Click Elements event rule of "custom" with the selector : ".single_add_to_cart_button"
This tag fires custom HTML with Plausible Analytics "Custom Event" javascript.
I've deployed the revision and added the global code and the tag to all the product pages, but it doesn't appear to be firing properly, as I don't see any recorded events in Plausible.
I've used GTM previously to fire the needed code on a Click Text trigger, and I'm trying to replace this.
Example URL: https://becausebirds.com/product/charley-harper-bird-drinking-glasses-2/
Any advice or guidance is much appreciated! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions