Skip Navigation

[Resolved] I want to edit all links in a specific post type to have tracking

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#582010

Hello,

I am part of a hotel affiliate program, and my developer created a post type for hotels. I would like to add Google tracking to all links within the hotel post type. Specifically, I would like to add:

hidden link" onclick="trackOutboundLink('hidden link'); return false;">Check out example.com

This is taken from the Google Analytics documentation:
hidden link

I assume the onclick URL is the same as the actual href URL.

How can I accomplish this?

Please help.

Thank you

#582209

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Could you please tell me how you adding links to your hotels post type?

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.