Problem:
I want to track clicks on members’ names (linked to their profile pages) using Google Tag Manager by referencing an alt tag, but I can’t add an alt tag to the clickable post title generated by [wpv-post-link].
Solution:
Replace [wpv-post-link] with a custom HTML anchor tag using [wpv-post-url] for the href and [wpv-post-title] for the link text. This allows adding any custom attribute (like alt or data- tags) that GTM can read:
[wpv-post-title]
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-url
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 1 reply, has 1 voice.
Last updated by 6 days, 16 hours ago.
Assisted by: Christopher Amirian.