Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

PPC tracking included within php forms

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

vincenzo

VIP Member
Impact
14
Note to mods; wasn't sure where best to put this, here or on the programming forums. Please move as appropriate.

I am looking for a way to track conversions from PPC campaigns, by capturing the information into my contact form.

The form is a PHP script to send us the enquiry via email and saves to MySQL
I want to capture:
- which PPC campaign
- which PPC keywords

Would be nice to also include these for leads not generated by PPC, but SEO instead:
- the originating traffic source
- if a search engine, which
- keywords or search term

I am hoping others have had this same requirement, so we can share methods to achieve this instead of re-inventing the proverbial wheel. :)

I have seen the following hosted service which seems to do everything I mentioned http://www.bestcontactform.com/features.php , but would rather have the features built into my own forms.

Looking forward to your solutions.

- Vince
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
If you set the campaign/kwd info (or some variable representing each combo, like a number corresponding to a row in a database or a spreadsheet) in your destination URL (as a query string) you can capture it on your page and pass it along on your form.

For example:

Database -
campaign1 adgroup1 keyword1 - 1
campaign1 adgroup1 keyword2 - 2
campaign1 adgroup2 keyword1 - 3

Destination url: yourpage.tld?id=2

Or, you can use Google's dynamic parameters to build the url:

yourpage.tld?kw={keyword}...

You can capture the referrer string ($_SERVER["HTTP_REFERER"]) for natural search.

If you're looking for PPC tracking, try prosper202 or tracking202 - both free, prosper202 is self-hosted, tracking202 is remote-hosted. For Adwords you can also use Google Conversion Tracking (also free).

Hope this helps!
 
Last edited:
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back