Closed (fixed)
Project:
Google AdWords Conversion Tracking
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Jul 2011 at 23:11 UTC
Updated:
13 Jan 2014 at 17:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
firebus commentedhere's a patch that adds a value to both the settings form and the node form
also, as i was writing the logic to display the correct value on the node form, i noticed that none of the values on the node form are respected. if you set a different label, color, etc. on the node form google_adwords ignores it and uses the values from the settings page.
i've fixed that here so that all values on the node form override the defaults on the settings form. the one exception is label - the existing logic suggested that the maintainers feel the label/path setting should override the node form label, and i've preserved that logic.
Comment #2
firebus commentedComment #3
firebus commentedI forgot to add value to the query string on the noscript img src.
I also wiped out a hook_update_n function by accident.
Here's a reroll that fixes these
Comment #4
firebus commentedone more try (variable name typo)
Comment #5
wiredescape commentedsubscribe
Comment #6
Preston McMurry commentedThe -4 patch appears to add a second color array below the one located approximately line 79 in google_adwords.install . Thought that might cause an error, so left that line out of my patch. Re-ran same test as previous. Noted the following line was added to the conversion javascript found in the page:
var google_conversion_value = 0;(Or, "1.0", with quotes, if I had entered 1.0 as a value in the node edit.)
However, regardless of entered value, I did not see any line generated which looked like this bit, which google itself typically displays immediately after google_conversion_value's declaration:
Note sure if that would cause a problem, though it would seem not.
Had no issues with it working in conjunction with color field ( http://drupal.org/node/1135348 ) and conversion code on non-node page patches ( http://drupal.org/node/1219306 ).
-----
Edit: Note that the missing javascript is mentioned here : http://drupal.org/node/1343232
Comment #7
perignon commentedSee 7.x branch for this change