Tracking on buttons and forms
-
Hello,
I have a person on my team unable to get tracking to work with buttons and forms on the template, please see below for details.
Thank you
Hello,
Thank you for choosing our theme and contacting us.
By default, our theme elements, as well as Visual Composer’s shortcodes, don’t have options for tracking codes. So if you want to add custom triggers to these elements you may need to customize shortcodes source codes. Could you please provide some screenshots of places where do you want to add your tracking?
Kind Regards
XTemos Studio
Here are the screenshots I’ve been supplied with the areas wanted for tracking outlined in red
Attachments:
You must be
logged in to view attached files.
Hi,
1. The top bar content may be changed in Theme Settings -> Header -> Top bar.
2. Logo image and link in the file inc/template-tags.php
.
3. Button shortcode in the file inc/shortcodes.php
.
4. The button on the slider can be modified via Dashboard -> Revolution Slider.
Regards
Yes, you need to find tag in the code that display the logo for example and add your attribute like this
<a href="<?php echo esc_url( home_url('/') ); ?>" onclick="ga('send', 'event', 'internal link', 'click image', 'logo – header');" class="basel-logo basel-main-logo" rel="home">