OmniLeads Scripts and Tags Manager WordPress Plugin

OmniLeads Scripts and Tags Manager

OmniLeads Scripts and Tags Manager lets users include all Google scripts and tags relevant to configuring their website for Google related services. This plugin is developed and owned by Omni Leads B.V. and authored by Daniël Mulder. The current version is the first beta test release for testing compatibility with WordPress versions and themes. It’s fully functional but not tested and there is no documentation at this moment besides the information on this page.

Installing plugin for WordPress
Plugin options page / settings
Enable / disable the plugin and individual scripts for inclusion
Add your Google scripts to your website
Lookup the remarketing conversions ID from AdWords
How to us the dynamic remarketing conversions ID
Tag a page with a dynamic remarketing tag
Pages where the scripts are included and logged in users
Installing plugin for WordPress
  • Download the plugin code zip.
  • Upload zip file with the standard WordPress plugin installer.
  • Activate the plugin via the plugins menu.
  • Go to the plugin settings via the menu Scripts and tags.
  • Paste your scripts into text areas in the tabs.

NB. use the complete scripts provided by the Google service including the <script></script> tag etc.

Plugin options page / settings

WordPress administrators can configure the plugin and add scripts to the website via the options page. The options page can be found via the left menu in the WordPress dashboard under menu item Scripts and tags manager.

screenshot menu for options page

Click the item Scripts and Tags Manager in the menu like in the screenshot above.

Enable / disable the plugin and individual scripts for inclusion

By default the plugin is not enabled when its turned on via the WordPress plugins page. To make to plugin include your scripts it’s need to be enabled via the options page. The options page is located under the Scripts and tags menu in the dashboard. On the first tab of the options page the plugin can be enabled to include your scripts. Also scripts can be enabled or disabled individually but no script will be included if the plugin is not enabled on the Settings tab.

Add your Google scripts to your website

Once installed the scripts and tags can be set with the plugin by adding them to the appropriate input fields for Google Webmaster Tools (same as Search Console), Analytics, AdWords Remarketing and Google Tag Manager. Be sure to copy and paste the complete scripts / codes that are used by these applications and do not remove tags or anything. Press Save to save your script and check the enable box to enable the script and embed it in the website source code.

Screenshot add script or tracking code or tag

Click the item Scripts and Tags Manager in the menu like in the screenshot above.

Lookup the remarketing conversions ID from AdWords

To get the conversion ID for the regular remarketing tag while using dynamic remarketing:

Go to adwords.google.com, log in with the appropriate account and go to the AdWords campaign for which remarketing should be enabled. Then in the menu on the left choose Shared library. On this page click on the button Tag details in the window in the upper right side of the page and like on the screenshot below. For more see the help page for this Tag your site for remarketing.

remarketing tagdetails adwords 

Clicking on the Tag details button will open the window like in the screenshot below. In this screen go to the tab Tracking-ID for mobile apps and grab or copy the remarketing conversion id.

 

 

Remarketing tag details AdWordsClicking on the Tag details button will open the window like in the screenshot on the left. In this screen go to the tab Tracking-ID for mobile apps and copy the id.

NB. the conversion ID for mobile applications is exactly the same as for the normal remarketing tag and grabbing it in this way saves time and explanation on how to extract the same id from the complete tracking script itself.

How to us the dynamic remarketing conversions ID

Setting the conversion ID for remarketing tag while using dynamic remarketing:

When reading this and wanting to implement dynamic remarketing using the conversion id then it’s advised to first read the instructions under the item ‘Lookup the remarketing conversions ID from AdWords‘ on this page. When the conversion id has been obtained then proceed here to add it to the OmniLeads Scripts and Tags manager plugin. To add it go to the plugin options and settings page in the WordPress dashboard via the Scripts and tags menu item and make sure the dynamic remarketing is enabled under the settings tab.

Remarketing tag id AdWords 3

 

 

 

 

 

 

 

Then go to the tab Dynamic Remarketing and fill in the conversion id in the first box like in the screenshot below. If the checkbox in front of it is checked then this tag is active for all pages that are not tagged with a dynamic tag.

remarketing tag id tag

Result of adding conversion id

When the conversion id is added and enabled, then the normal remarketing tag is added to the source of all pages not having a dynamic remarketing tag. A dynamic tag is added via the button Add Tag to Page and this is explained in an other item on this page. The resulting code that is added to the page will look like the below code:

remarketing tag id adwords 2

Tag a page with a dynamic remarketing tag

Tagging a page with a dynamic remarketing tag with page specific tag parameters :

If you are wanting to add the same remarketing tag to all pages then first read the item above this one called How to us the dynamic remarketing conversions ID. Read on if you are wanting to add a single tag to a single page. For this go to the plugin’s options and settings page in the WordPress dashboard via the Scripts and tags menu and make sure the dynamic remarketing is enabled under the first tab called Settings. Go to the Dynamic Remarketing tab of the options and settings page. On this tab click on the button Add Tag to Page like in the screenshot below.

Add dynamic remarketing tag tag to a page

Use Add Tag to Page button to create a tag for a page

When the button is clicked the screen for creating a new tag to add to a page is loaded. In this screen copy and paste the complete script that is provided by AdWords or any other service providing the actual code.

Add new remarketing tag to a page

Paste dynamic tag script and select the page

After pasting the script select the page to add the remarketing tag to. Then press Save to add the tag to the page. From then on when the tagged page is loaded the newly created dynamic tag is loaded only for that page.

Result adding a dynamic remarketing tag

When a page is tagged with a dynamic remarketing tag then the resulting code that is added to the page will look like the below code:

Dynamic remarketing tag code example

Example HTML source dynamic remarketing tag

Pages where the scripts are included and logged in users

By default this plugin includes all enabled scripts in all pages but never includes any scripts for pages that are part of the WordPress dashboard. For all logged in users that are on a public page the enabled scripts are included. For most purposes and intends tracking scripts are only used for the front facing part of the website. Including tracking scripts in the dashboard area will result in unwanted pollution of user statistics and also will raise privacy policy concerns for remarketing data collection.

Menu