Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1176843

    Hello,

    I am working with a third-party marketer and they requested for a tracking pixel to be placed in the header of a button. I built the page using the Advanced Layout Builder and just used the standard avia buttons. Do you know if there’s a way to add a tracking code to the Schedule a Consultation button? Let me know if you can help, thanks!

    • This topic was modified 4 years, 11 months ago by MJM.
    #1177119

    Hey Kirstie,

    Please do the following:
    1. If you already have a child theme, please skip this step, if not follow the instructions in our documentation: https://kriesi.at/documentation/enfold/child-theme/
    2. Then do the instructions here: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
    3. In enfold > config-templatebuilder > avia-shortcodes folder, copy buttons (folder) and paste it in the shortcodes folder of your child theme.
    4. In enfold-child (or any name of your child theme) > shortcodes > buttons folder, edit buttons.php and find this code (line 456 in Enfold 4.7.2):

    $content_html .= "<span class='avia_iconbox_title' >{$atts['label']}</span>";

    below it add this code:

    if( $atts['label'] == 'Translucent Dark' ) {
    	$content_html .= '<img src="https://tag.simpli.fi/sifitag/REPLACE_WITH_CODE_IN_PRIVATE_CONTENT.png" width="1" height="1"></img>';
    }

    5. Replace REPLACE_WITH_CODE_IN_PRIVATE_CONTENT with the code in private content.
    Hope this helps.

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.