Archived topic
Google conversion code
12 replies · Started by marketingeszkozok on June 8, 2017
I use: generatepress theme + elementor pro.
I would like to paste the google conversion code into one page.
What solution do you suggest?
Using a plugin like this would be the easiest option: https://en-ca.wordpress.org/plugins/header-and-footer-scripts/
Otherwise you could use PHP conditionals in the wp_footer hook in GP Hooks.
Let me know if you need more info :)
Not work. :(
Video: https://www.useloom.com/share/077ff5553e134f729ca62dbd64d46a9d
Any chance you can link me to that page?
Yes.
Please enter your email address.
I'm sending you access.
My email address: info@marketingeszkozok.hu
You can send it through the contact form: https://generatepress.com/contact/
Did you make sure to clear your caching plugin after adding the code?
Yes.
I sent access.
Did you receive it?
Hmm, you might have to check with the plugin developer of Tracking Code Manager. Your settings look all good, and I assume it hooks into the wp_head hook which exists in GP.
If it's not caching, then it would be an issue with the plugin.
You could always use a function:
add_action( 'wp_head','tu_custom_tracking_code' );
function tu_custom_tracking_code() {
if ( ! is_page( 'kapcsolat' ) ) {
return;
}
?>
Your code in here
<?php
}
Adding PHP: https://docs.generatepress.com/article/adding-php/
1. I installed Code Snippets plugin.
2. Paste code, change "Your code in here"
Not work. :(
Then I'm 99% sure it's your caching plugin. Try clearing it and disabling it completely.
I deleted caching plugin.
Not work.
It worked. Here it is in the source of that page: https://www.screencast.com/t/YFCm1xjvRuO