• Resolved mealto

    (@mealto)


    Hi, is there a way to add a tracking code to a hidden field for Mailchimp? We have set up the hidden field already, I am note sure how to input that into your plugin so we can track signups. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mealto

    (@mealto)

    Let me clarify. I have added the proper hidden field. Can you provide me with the proper syntax so I don’t break the functions.php file for using the permalink to grab the page the user is on when signing up? This is the line I need proper syntax for to work in functions.php. Can you help?

    echo ‘<input type=”hidden” name=”NAME” value=”<?php esc_url(the_permalink()); ?>”>’;

    Plugin Contributor Lap

    (@lapzor)

    You already between <?php and ?> tags, so you don’t want to repeat those. Instead join string and vars together with a period.

    echo ‘<input type=”hidden” name=”NAME” value=”’. esc_url(the_permalink()) .’”>’;

    Please note that help like this with custom coding is out of scope for free support, so I will close this ticket.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Tracking Code to Hidden Field’ is closed to new replies.