Adding Alexa tracking code into footer

Hi there,

I have an issue with inserting the Alexa tracking code. I’ve had a good half an hour look around the forum and I downloaded the plugin you recommend and added it, but it still doesn’t seem to be getting read by alexa.com, so I’m not positive it has added it. Any ideas?

https://www.imanageapp.co.uk

Thanks a million,

John

Hey John,

Thank you for reaching out to us. There are a number of ways to add Alexa verification code in WordPress websites.

function custom_script() { 
?>
	<!-- Paste your alexa tracking code here -->
<?php 
}

add_action('wp_footer','custom_script');

Just replace the comment <!-- Paste your alexa tracking code here --> with your tracking code in the above code.

Hope this helps!

Cheers Nabeel you legend, I couldn’t work it out for the life of me - thanks!

Actually thinking about it, I tried that alexa certify and it didn’t work, and I don’t use a child theme.

Can I add the same code you’ve given me into custom css via the theme options - sorry if thats a stupid question.

and you are still a legend :slight_smile:
John

Hi John,

No, you cannot add that in Theme Options.
Since you are not using a child theme, you can install this third party plugin

Then add your alexa tracking code in Scripts in Footer

Hope this helps

Hi Paul

Yeah thats the one I tried (plugin) before I raised the inital question. It doesnt seem to be adding it in.

Hi John,

In that case, you will have to install and activate the child theme and follow the suggestion made my @Nabeel to add the code. That should be able to add the script in the website’s footer area.

https://theme.co/apex/child-themes

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.