Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

vinyc on "Adding HTML to Contact Form 7 Email"

$
0
0

We would like to include custom HTML in the confirmation email message body that is sent someone signs up through Custom Form 7.

The actual HTML contains JavaScript and it is:

<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"></script>
<h2>Your Information</h2>

  • Country Code: <script>document.write(geoip_country_code());</script>
  • Country Name: <script>document.write(geoip_country_name());</script>
  • City: <script>document.write(geoip_city());</script>
  • Region: <script>document.write(geoip_region());</script>
  • Region Name: <script>document.write(geoip_region_name());</script>

When I just embedded the HTML as is we got the following (no data):

Your Information
• Country Code:
• Country Name:
• City:
• Region:
• Region Name:

The reason we would like to include this is so that we know where the sign up came from within the email instead of looking up each individual conversion in Google Analytics.

Any suggestions on how to do this would be greatly appreciated.

http://wordpress.org/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>