Adding custom attributes with parameters #18141
foligo
announced in
Developers Community
Replies: 1 comment
-
Maybe try single quotes or use an escape backslash character data-analytics|\"kontakt-button\", {\"props\":{\"location\":\"header\"}}\" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there everyone,
I'm trying to implement plausible.io analytics event tracking on my website which runs elementor pro. Therefore I need to implement custom attributes to links and elements with parameters.
Ex.: data-analytics='"Register", {"props":{"plan":"Navigation","location":"footer"}}' (Docs: https://plausible.io/docs/custom-event-goals#using-custom-props)
When I try to insert this within the custom attributes field either on links or on elements (in advanced section) elementor parses this in its own way, ex.:
Insert: data-analytics|"kontakt-button", {"props":{"location":"header"}}"
Parsed: data-analytics='""kontakt-button"' props=""
Is there any way that elementor does not parse this so randomly?
Does anybody of you have a solution or experience with his?
Thanks a lot in advance and best wishes,
Beta Was this translation helpful? Give feedback.
All reactions