Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1127546

    Good morning,

    we want to successfully track our conversions and for this reason, we created a thank you page where buyers from our Woocoomerce shop will be redirected to.
    To redirect clients to this thank you page seems not to be possible without a plug-in. We found one plug-in which is WMPL responsive and seems to be good: “NextMove Lite – Thank you page for Woocommerce”. Additionally, we were thinking of using the “Header Footer Code Manager” plug-in for installing (which is as well WMPL responsive) the global site tag and the event snippet.

    On the other hand, we saw that in the enfold themes menu on WordPress “Google Services”, there is the option of inserting the “Google Analytics tracking code”. Would we have to enter here the global site tag? Where do we have to add the event snippet?

    Which option would you recommend us to be easier and more intuitive, are those two plug-ins compatible with Enfold?

    Thank you very much in advance for your answer.

    #1127791

    Hey Yoolia,

    You can add your Google Analytics tracking code under Enfold->Google Services. If you need to add other code then it’s likely better to do that using a function in your functions.php file.

    Best regards,
    Rikard

    #1128872

    Hi Rikard,

    thank you very much, but as we have to install two codes, the global site tag and the event snippet would you recommend us to install the plug-in mentioned in the previous message, is it compatible with Enfold?

    Best regards,

    #1129244

    Hi,

    Thank you for the update.

    We haven’t tried that plugin, unfortunately. If you want to track the activity of your users, you can set a goal or event tracking in your Google Analytics. For example, in the page where you are redirecting the users after the checkout, you can trigger a tracker on page load.

    // https://support.google.com/analytics/answer/1032415?

    Best regards,
    Ismael

    #1129554

    Hi Ismael,

    thank you for your reply. My post had 2 questions:

    – How do you recommend to redirect to a thank you page when using Enfold with WPML and Woo Commerce? I assume that is quite a standard thing to do, so I guess there is a recommendation from your side.

    – Now on the Thank you page itself – we want to place the Google Adwords Event Snippet. I have reviewed your link, but it seems more complicated than to just paste the Adwords Snippet on the page.

    I am sure these answers will be helpful for many others as well.

    Thank you and kind regards,
    Julia

    #1129815

    Hi,

    Thank you for the update.

    1.) You can use this snippet to do a redirect after the checkout. Add it in the functions.php file and replace the URL.

    add_action( 'template_redirect', 'woocommerce_redirect_after_checkout' );
    
    function woocommerce_redirect_after_checkout() {
    	global $wp;
    
    	if ( is_checkout() && ! empty( $wp->query_vars['order-received'] ) ) {
    		$redirect_url = 'https://yoursite/url-to-redirect-after-checkout';
    		wp_redirect($redirect_url );
    		exit;
    	}
    }

    2.) You have to use Google Analytics, not Adwords. First, you have to create an event goal in your Google Analytics dashboard as described in the previous article. After setting that up, you need to use the “ga” or “gtag” function to trigger the event on page load.

    // https://developers.google.com/analytics/devguides/collection/gtagjs/events

    There are a lot of tutorials out there that should help you set this up.

    // https://www.monsterinsights.com/how-to-create-a-goal-in-google-analytics-to-track-conversions/
    // https://webris.org/creating-goals-out-of-events-in-google-analytics/

    This is beyond the scope of support, unfortunately, so we won’t be able to help you any further.

    Best regards,
    Ismael

    #1130055

    Dear Ismael,

    of course, thank you very much for helping us!

    Best regards,
    Julia

    #1130119

    Hi,

    Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Please bookmark Enfold Documentation for future reference.
    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Compatible Thank you Page / Google Tracking Code Plug-Ins’ is closed to new replies.