howdy!

i have a client that wants multiple conversion codes on a page, using the "Label | Paths:" form to set multiple labels with the same path.

i'll post a small patch that supports this feature.

CommentFileSizeAuthor
#1 multiple_labels-1420060-1.patch3.45 KBfirebus

Comments

firebus’s picture

Status: Active » Needs review
StatusFileSize
new3.45 KB

patch!

Preston McMurry’s picture

I applied this patch on top of the conversion value ( http://drupal.org/node/1219344#comment-5862220 ), color field ( http://drupal.org/node/1135348 ) and conversion code on non-node page patches ( http://drupal.org/node/1219306 ).

Note that this patch cannot be taken verbatim: You must wrap the foreach around the $output lines in google_adwords.module, rather than simply pasting over them (which would wipe out elements of the previous patches).

Having un-installed the module, applied this patch, re-enabled the module, then stepped through the config, I have arrived at the node edit page I wish to have multiple conversion labels. (The contact page, depending on the value passed to the comment textarea should have a different conversion.) However, I do not see any means in the node edit to enter those different values, like a bunch of extra conversion label text inputs.

If the task of entering multiple labels for a page is to be accomplished instead via the https://{my url}/admin/settings/google_adwords config page, it is not immediately obvious how to do so. (Plus, this patch did not modify the google_adwords.admin.inc to add anything to it.)

So ...

What is the technique for a single page having multiple conversion codes / multiple google_conversion_label values?

perignon’s picture

Issue summary: View changes
Status: Needs review » Fixed

This has been done for the 7.x version.

perignon’s picture

Status: Fixed » Closed (fixed)