Have someone suggestions to integrate tokens generated with Google Analytics Tokenizer in database using Contact Save module?

Comments

Brian294’s picture

Status: Active » Postponed (maintainer needs more info)

Good idea. Is it possible to insert the tokens into user-defined form fields using the contact_field module? contact_field is already integrated with contact save. http://drupal.org/project/contact_field

If custom fields can be active, yet not displayed to the user, then it should work!

Peace,
Brian

Dret’s picture

Title: Help to save token values to DB inside Contac Save module » [solved] Now to solve with Webform!

I solve using the footer variable to the Contact Save module function (contact_save_mail_alter)adding this line to "message" text:

'message' => $message['params']['message'].here_the_variable;

in my case i had to add:

$message['body'][2].$message['body'][3].$message['body'][4]

first and second was for some extra fields from a custom module for Contact and the last $message['body'][4] to collect values from:

$body_footer = theme('contact_google_analytics_footer', $footer);
$body_footer = token_replace_multiple($body_footer);

But now i need ideas to make the same for Webform!!!
I saw that token generated by ga_tokenizer are not present in token supported by webform (i'm using 2.x version of Webform).

Ideas about?

Brian294’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

I have written another module to do something similar to what you have requested. It's called GA Capture.
https://drupal.org/project/ga_capture

I am seeking sponsorship to develop the webform submodule, take a look:
https://drupal.org/node/2165325

Peace,
Brian

Brian294’s picture

I wrote the module, it is available here: https://drupal.org/project/ga_capture