I found out how to do it. Here are the instructions:
1. In the Form builder tab for your Contact Form 7 form you will now see a button to be able to create the “Referrer” tag. This inserts a tag similar to [cf7rfr_referrer cf7rfr_referrer-###].
2. In the Mail tab just add this mail tag: [cf7rfr_referrer-###] (of course, using the real number, not just hash tags)
Note – I have tested this and it seems to only give the previous page or URL. Thus if I came to the page from Google and submitted the form this plugin would show Google as the referrer. However, if I navigate to a second page on the website and submit the form this plugin would show the first page I was just on as the referrer.
This is not the behavior I was looking for. I found https://www.fldtrace.com/referral-conversion-tracking-with-wordpress-contact-form-7 which shows the original referrer for up to 2 hours that the visitor is on the site no matter how many pages the user visits. It takes a little more to set this up (not just a simple plugin install) but the instructions are a lot clearer than they are for this plugin.
-
This reply was modified 8 years, 1 month ago by
bhicken.