Configure your Palantics tracking server settings.
'; } /** * Auto tracking settings section callback */ public function auto_settings_section_callback() { echo 'Configure which elements to track based on CSS classes.
'; } /** * Server URL field callback */ public function server_url_callback() { $value = get_option('palantics_tracking_server_url', $this->tracking_server_url); echo ''; echo 'Enter the tracking server URL without https:// (e.g., t1.palantics.net)
'; echo 'You will find this in your domain screen in the Palantics app
'; } /** * Track classes callback */ public function track_classes_callback() { $value = get_option('palantics_tracking_track_classes', ''); echo ''; echo 'Enter comma-separated class names to automatically track clicks on elements with these classes (e.g., cta-button, featured-product)
'; } /** * Render settings page */ public function render_settings_page() { ?>Add the data-track attribute to any HTML element to track clicks:
<button data-track="signup_button_click">Sign Up</button>
Wrap any content with the shortcode to track clicks:
[track_element event="download_click" class="your-class" style="your-style"]
Your content here (can include other shortcodes)
[/track_element]
You can also manually add onclick="tE('your_event_name')" to any HTML element.