Hi,

I have a webform with 2 e-mails.

One is an auto-responder that sends and e-mail to the user and the other e-mail goes to the website admin with the subimitted data.

By activating this module all the e-mail will receive the Google Analytics information.

How can I send the GG An. only to the admin?

Thank you in advance.

mileZ

Comments

Brian294’s picture

Assigned: Unassigned » Brian294

Thank you for pointing that out. I'll see if there is a way to identify the type of email that is being generated by Webform.

mileZ’s picture

Hi Brian,

do you think it's possible to add some GA tokens. Like the standard tokens of Webform?

mileZ

meason’s picture

Category: support » feature

This is a great module, thanks for writing it. I've got the very same requirement, need to send 2 mails, one to admin, one to user using webform module. Would this feature request be in the realm of the webform module or this module? I see there are tokens but they don't seem to work in my webform.

Brian294’s picture

@milez - last night I uploaded the latest dev version. It should give you the functionality you requested.
http://ftp.drupal.org/files/projects/contact_google_analytics-6.x-1.x-de...
http://ftp.drupal.org/files/projects/contact_google_analytics-6.x-1.x-de...

You now have a configuration page found here (NOTE: You must grant access to this page in permissions if you are not logged in as user 1):
.../admin/settings/contact-google-analytics

You can input "allowed recipients" which are email addresses that are allowed to receive the google analytics footer. By default, it's set to all. It's not wildcard enabled, so you can not do things like *@mydomain.com -- you have to put in entire email addresses.

Let me know if this solves the problem.

Peace,
Brian

Brian294’s picture

Title: Webfrom and multiplemail » Webform and multiplemail
Status: Active » Needs review

@meason - What you are looking to do is capable within webform. Assuming you are using webform 6.x-3.x, there is no easy "auto reply". You have to configure a new email recipient, here:
/node/[nodeid]/webform/emails

The most recent dev of my module will let you type in the email address of your admin user so the user completing the form won't see the google analytics information in their autoreply.

Let me know how it goes!

Peace,
Brian

mileZ’s picture

@Brian294

I will test it and give you feedback.

Thnx
mileZ

Brian294’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

meason’s picture

Apologies for not replying @Brian294. I've been away for a while. If I remember correctly, I started using the functionality in Webform itself... but wanted to use to 'tokens' that your module provided. I've since moved on from that site but will keep your module in mind in future. I wonder if D7 Webform will provide real token support. Anyway, thanks for your great work!