AdWords
3.8K members online now
3.8K members online now
Get started with AdWords - learn the basics to get set up for success
Guide Me
star_border
Reply

Remarketing with Wordpress

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

What is the best way to add the remarketing script to a Wordpress website? Do the plugins actually work? Can the code be placed in a PHP file? How do you set this up?

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by Alys (Google Employee)
September 2015

Re: Remarketing with Wordpress

Top Contributor
# 2
Top Contributor

Simply put the code in the footer (assuming you want to retarget ALL users who visited your wordpress site).

 

If you want to be more selective, you can use custom fields and selective output yourself.

View solution in original post

Marked as Best Answer.
Solution
Accepted by Alys (Google Employee)
September 2015

Re: Remarketing with Wordpress

Top Contributor
# 2
Top Contributor

Simply put the code in the footer (assuming you want to retarget ALL users who visited your wordpress site).

 

If you want to be more selective, you can use custom fields and selective output yourself.

Re: Remarketing with Wordpress

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Remember to make your changes to your child theme. You can hardcode the tracking code but it will be better if you use wp_footer() in your functions.php. This way if you ever update your theme, it won't delete you changes to the footer.php. 

 

Re: Remarketing with Wordpress

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
To expand on Dave's answer...

If you want to remarket different ads to multiple website visitors based on which page they visited, you can't just add 1 remarketing code to the entire wordpress website footer. You would need to add multiple remarketing codes.

If you know PHP, you can create custom template files for each ad. If you don't know PHP and would rather use a plugin, here is plugin where you can ad custom footer code to every page on your wordpress website - http://wordpresscustomheaders.com