Hello,

I have installed and implemented the Google Adwords Conversion Tracking module. I have added it to my content types and have input the proper information into the fields on specific nodes.

My question is, how do I know if it is working? I've searched my source code expecting to see something like:

<![CDATA[
var google_conversion_id = ##########;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "#############";
var google_remarketing_only = false;
]]>

However I cannot find it. What should I look for to know that the values from the module are being read properly?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

FinderFees’s picture

Issue summary: View changes
Perignon’s picture

Status: Active » Needs review

If the module is working correctly and setup correctly you will see the Google Tracking information like the above on your page (you can see the code in google_adwords.tpl.php

jenlampton’s picture

Status: Needs review » Active

I don't see a patch here that needs review, so setting the status back to Active.

I'm also having the same problem. The module is enabled, I've entered some settings, I've cleared the caches, but the code I'm expecting (in my case the remarketing code only) is not appearing in the source code on my site.

<!-- Google Code for Remarketing Tag -->
<!--------------------------------------------------
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxxx;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/xxxxxxxxx/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

I looked through the source code of the module, and it looks like the only place theme('google_adwords') is called is in a field formatter. I need this code to be added onto every page on my site, whether that page contains and renders an entity (with this field) or not.

I'm guessing that perhaps the adwords module is not what I need for Adwords Remarketing, and I'll look into using https://www.drupal.org/project/google_adwords_remarketing instead.

Perignon’s picture

Assigned: Unassigned » Perignon

I never noticed that there is no README file. I'll see about creating one.

But the step you are probably missing is adding the field. For this to work you must modify the content types to add a "Google Adwords" field to the content type. Then you will start to see tracking codes on the pages.

I'm testing some code now that will add the tracking based on path as an alternative way of doing this.

Perignon’s picture

Status: Active » Fixed

I have added a readme file to the 7.x-2.x branch. Take a look at it and give me your thoughts.

FinderFees’s picture

FileSize
20.26 KB

Thanks for getting back to me Perignon. Your readme file looks excellent, just a few typos of "Acccount" and "Converstion".

As I feared, I seemed to have done everything correctly, cleared cache, but it is still not showing up in my source code. :(

FinderFees’s picture

Status: Fixed » Active
Perignon’s picture

Can you upload a screen shot of the admin page?

The image you uploaded, is that the field on the node?

Did you set the "anonymous user" role in the admin settings to be tracked?

FinderFees’s picture

Status: Active » Fixed

Ah ha! That was it. I did not have any user roles defined (duh!!). Thank you so much Perignon. I'm glad it was just user error.

Perignon’s picture

Awesome!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kumkum29’s picture

Hello Perignon,

I have read the readme file and sets settings of the module. But I don't see Google Adwords in source code of the pages.
I may have forgotten something.

For info:
1- I have downloaded this module & installed it.
2 -In settings of this module (admin/config/system/google_adwords) I have inserted my Google Adwords account (Conversion ID/conversion language/format/color/external js) and selected the "anonymous user" option and the "authentificated user" option.
3- I have cleared the cache.
4- I have created a new field in my node type (adwords field) and insert my report label.
5- I have cleared the cache.

But I don't see any adwords code in the html code of my pages.

In the modules directory of my site, the name of repertory of this module is google_adwords. Is this wrong?

Thanks for your help.

Perignon’s picture

@kumkum29 I wanted to make sure my instructions were correct and just followed them myself on a fresh installation of Drupal and I got success.

What I don't see in your steps between #4 and #5 is did you create a new node of the content type that has the Google Adwords field? This works (without the path module) on a node per node basis - i.e. you will only see the tracking data on a single page on your website.

kumkum29’s picture

Hello Perignon,

unfortunately this module don't work on my site. I have uninstall and reinstall it several times the module, without success. Then I have renamed the repertory of the module with "delivra" as specified in step 1. This change has changed nothing.
I have cleared the cache several times and I have created new nodes with the adwords field...nothing appears in the html of the page.

Have you any idea to resolve this problem ?

Thanks.

Perignon’s picture

Opps that is a typo in the Readme. Let me fix that now.

Perignon’s picture

@kumkum29, did you create a new node to track? Can you upload screenshots of your content type "Manage Fields" display?

I updated the readme. Here is what it looks like now:

INSTALLATION INSTRUCTIONS
-------------------------
1. Copy the files included in the tarball into a directory named "google_adwords" in
your Drupal sites/all/modules/ directory. (Or use drush "drush dl google_adwords")
2. Login as site administrator.
3. Enable the Google Adwords module on the Administer -> Modules page
(Under the "Statistics" category).
4. Fill in required and desired settings on the Administer -> Configuration ->
System -> Google Adwords page.
5. To complete the installation you will now have to add the Google Adwords field to a content type. Under Structure -> Content Types ->
-> Manage Fields -> Add new field (Field type: Google Adwords).
6. If you have setup all the information in #4 with your Google Adwords tracking information you will now see the information from step 4 as the default value for the field. Save content type.
7. One last step before tracking will function. Conversion labels have to be setup on a per node basis!
Now edit a node that you want to track. Find the Google Adwords field and supply the
"Converstion label" that Google Adwords gave you when you setup tracking look for "var google_conversion_label = "SOMELONGSTRINGOFSTUFF";"
8. Enjoy better ROI tracking on your PPC campaigns.

Perignon’s picture

@kumkum29 Also can you send me any web links to the site so I can see it.

But like I said before. I followed my instructions on a fresh installation of Drupal 7.31 and it worked.

kumkum29’s picture

Hello Perignon,

It's ok. Thanks for your explanation.
I forgot to add the created fields in the template of the node.
Now, i see the javascript code in my html.

Thank you once again for your help.

Perignon’s picture

Good to hear! Check out the code in the Dev branch if you can. It makes adding the tracking to pages much easier.

Dawn’s picture

Hello,

I installed the Module and configured it in the module configuration settings. (I filled in all required fields including conversion ID, Conversion Label, Conversion Params, External JavaScript, etc, and it is enabled) selected the "anonymous user" option and the "authenticated user" option.

I have cleared the cache many times.

I am having trouble with #4 and #5 of the above instructions.

For #4,
Administer -> Configuration ->
System -> Google Adwords page

Under System, there is no option "Google Adwords page"

For #5.
Under Structure -> Content Types ->
-> Manage Fields -> Add new field (Field type: Google Adwords)."

When I try to add a new field to my content type, I do not get an option in the drop-down Field Type list that says "Google Adwords"

Your help is very appreciated.
Thanks.

Perignon’s picture

Issue summary: View changes
FileSize
221.7 KB

Dawn,

If you do not see the admin menu and you do not see the option in fields then something sounds not right with your Drupal installation. I would first make certain the module is enabled. Drush would help here: drush en -y google_adwords
If you get an [succeeded] from drush then proceed a clear all cache: drush cc all

If you are running opcode caching on the web server you could potentially need to restart the web server to clear the opcode cache. This would depend on how aggressive the opcode cache is set to check changes in files.

I just took this screenshot on my local machine showing the menu item:

Dawn’s picture

Hello Perignon,

Thank you for your response.
I'm not accustomed to using Drush, but will go ahead and try it.

The way I installed the module is I just uploaded the contents of the google adwords module via ftp (Filezilla) into the /sites/all/modules/google_adwords directory.

These are the files in there:

garc.js
google-adwords-remarketing-admin-display-form.tpl.php
google_adwords_remarketing.admin.inc
google_adwords_remarketing.info
google_adwords_remarketing.install
google_adwords_remarketing.module
LICENSE.txt

The module appeared in the module list, and I checked to enable it, and configured it with the info I previously mentioned.

I'm running Drupal version 7.32.

As I said, I will try Drush, I'm just wondering if there is something else that I obviously did wrong.

Thank you again,
Dawn

Perignon’s picture

I see the problem. Wrong module! That is not the Google Adwords module. That is another module called Google Adwords Remarketing. Which is no longer needed because Google now allows Remarketing tracking if your Adwords and Analytics accounts are linked.

Dawn’s picture

Hello Perignon,

Ah ha... thanks for the heads up!
I deleted the old one, and loaded the correct module this time and indeed I now have the admin menu and have the option in fields in the content types.
I'm now on step#7
One last step before tracking will function. Conversion labels have to be
setup on a per node basis!
Now edit a node that you want to track. Find the Google Adwords field and
supply the "Converstion label" that Google Adwords gave you when you setup
tracking look for "var google_conversion_label = "SOMELONGSTRINGOFSTUFF";"

I'm in the individual nodes, and I see a field that says "Report Label" - not "Conversion Label" (see screen shot)

Only local images are allowed.

Do I paste my conversion label code in there? Am I doing something else obviously wrong?

Thank you again.
Dawn

Dawn’s picture

Here's the link again to the screen shot:
http://www.fawc.org/ad_words_ss.jpg

Perignon’s picture

Yup. Same same.

Dawn’s picture

Thanks!