Google Ads Goal Snippet - Forum | JoomShaper
Staff replied SP Page Builder

Google Ads Goal Snippet

Asked by Steven Nel 3 years ago Last activity 3 years ago

Good Day,

I need to add goal completion snippets from google ads to a specific thank you page I have created, but I cannot see anywhere in page builder pro 4 where to add this custom code. How do I do this? I only need it for a specific page, not the entire site, so using custom code option for the template will not work.

Thanks,
Steven

6 replies

Steven Nel Asked this

Anyone planning on replying here? I'm a paying customer and expect a resonse at least!

Paul Frankowski Senior Staff
3 years ago · edited

Hi Steven,

Sorry for delay.
By default SPPB doesn't allow to use custom JS/PHP code inside pages nor addons.

You have to use extra steps:

  1. Install HD-AnyCode module (or similar module for custom code!)
  2. Put your G-code inside
  3. Publish module
  4. Use that module using Module addon
Steven Nel Asked this

Please can you advise on a recommended module for Joomla 4? HD-Anycode is not supported.

Paul Frankowski Senior Staff
3 years ago · edited

Make research on Joomla Extension Directory

.... but HD-AnyCode module for J3.x still works on my private J4 site. This is very basic module, nothing changed in that area. Talk with its developer, buy him a "virtual" coffee.

Steven Nel Asked this

I have tried another module. It does not work, google does not detect the tag and I have followed the steps suggested.

It is very strange that this cannot be done using page builder. Quite honestly, it should be a standard feature since custom CSS can be added at the page level and adding google tracking codes are very much a necessisty for anyone building a site.

Paul Frankowski Senior Staff

You can publish custom code in a different position, etc.

and remember even Google make mistakes! and needs time to start collection data, read posts/comments added by wordpress webmasters, you will see.

Log in to reply.