• Resolved lokeshbsaglobalcom

    (@lokeshbsaglobalcom)


    Hi, If we submit the form from website utm_source is not capturing properly. if we submit the form utm_source is showing website but not the one which is there in the above URL .

    aslo country selection dropdown is not working properly, when we click on dropdown automatically it closing.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @lokeshbsaglobalcom,

    Are you saying that the source of the submission in GoToWebinar is not being set to: linkedin / organic_social ? Maybe just try changing that to just linkedin? The dash or underscore might be causing an issue.

    Regarding the country field, this is because either your theme or another plugin is implementing select2 functionality on the field and that is stuffing things up. We just render the field as a standard select field, so something is coming in afterwards and manipulating the output. If you switch to a default theme and disable all plugins except ours, you should see what I mean.

    So if you can disable the select2 functionality that would be great. Or you can try destroying it after the fact with jQuery code like:

    $(document).ready(function() {
    $('#country').select2('destroy');
    });

    or with a timeout:

    $(document).ready(function() {
    setTimeout(function() {
    $('#country').select2('destroy');
    }, 1000);
    });

    If you aren’t sure how to implement custom jQuery you can use a plugin like WP Custom Admin Interface. Thanks,

    Thread Starter lokeshbsaglobalcom

    (@lokeshbsaglobalcom)

    Hi, When we copy paste the the above URL and submitted the form then utm_source is taking “website” even if we have other name. but when we click the link from email, teams and from some where then it’s taking the correct utm_source name what ever is there in the URL.

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Ok we have a developer filter available maybe this might work better. It is declared like:

    $source = apply_filters( 'gotowebinar_registration_source', $options['gotowebinar_registration_source'], $a['key'],$jsondata['subject'] );

    So you could put code in your themes functions.php file like:

    add_filter( 'gotowebinar_registration_source', 'my_custom_gotowebinar_source', 10, 3 );

    function my_custom_gotowebinar_source( $source, $key, $subject ) {
    return 'website';
    }

    To change the source. Just change website to whatever you want and you can use the variables available if you want to do anything more fancy.

    I hope that helps. Thanks,

    Thread Starter lokeshbsaglobalcom

    (@lokeshbsaglobalcom)

    Hi, Based on the requirement we putting utm_source and also we might have 3-4 GTW forms on the entire website an for each form page URLs we will have a different utm_source names, please share the code which will fetch the details dynamically.

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @lokeshbsaglobalcom,

    The code I shared before is a developer filter, so you can set $source to be whatever you want based on the subject or key of the website or the post/page ID etc.

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.