• Hello,

    I need to add conversion tracking to monitor how many new visitors who land on our site through google ads register as members.

    Google’s directions: https://support.google.com/google-ads/answer/6331314?hl=en

    My question: I added the “global site tag” script to my theme’s header template already… But how do I add the “event snippet” script to a page that would only load after a new user has registered?

    I’m using BuddyPress and the BuddyBoss theme.

    Thanks for any suggestions!
    Luca

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I don’t know about BuddyPress, but in the normal user registration, there is no page that only loads for new users. New users are sent to the password reset dialog in order to set their initial password. There is no easy, reliable way to separate new users from existing users resetting their password.

    You could add another URL parameter to the link sent in the user registration email through the ‘wp_new_user_notification_email’ filter. Then hook the ‘validate_password_reset’ action and look for this added parameter in $_GET. If it exists, you know the link in the new user registration email was followed. If so, output the event snippet. This will record a conversion just before the new user enters their initial password. They are not yet a fully qualified user at this point, but about as close as you can get.

    If you really need to wait until they set a password, the new user status would need to be passed on to the next action=resetpass step. Perhaps by setting a cookie, which would require running a small script. This may all get more complicated than is warranted.

Viewing 1 replies (of 1 total)
  • The topic ‘Conversion Tracking For Signups’ is closed to new replies.