PHP Classes
elePHPant
Icontem

Remarketing and retargeting system: Show advertising based the users Google search

Recommend this page to a friend!
  All requests RSS feed  >  Remarketing and retargeting system  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Remarketing and retargeting system

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of dalington by dalington - 1 month ago (2016-01-30)

Show advertising based the users Google search

This request is clear and relevant.
This request is not clear or is not relevant.

+1

I need a remarketing and retargeting adverting system built with PHP that shows advertising on my site to visitor based on their search queries on and last site the visited, or better still give me an idea on how to build one.

Ask clarification

2 Recommendations

PHP OpenStreetMap Mapnik Tile Cache: Get and serve cached OpenStreetMap tile images

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Wayne Philip by Wayne Philip package author package author Reputation 25 - 22 days ago (2016-02-07) Comment

NBNB..The linked package has no bearing but..

I do this in axframe (dot] com - a FrameWork built by me.

It is an API for my user sites.. --I save the Search words by session_id --I link the user into the session_id (generated by my site) so that I Know how to categorise Him/Her and save the searched words there.

--- works for all search engine and ever when lonked in elseware.

Basics using ......

$refer_inbound=$_SERVER['HTTP_REFERER'];

make it lower case ..

so $refer_inbound now is say "xxxx://xxx[dot]google[dot]com/search?hl=es&q=hot+dog&lr=&aq=f&oq="

I then know pretty much where the user came from..

I establish a session..

session_start(); $sid=session_id();

Then..

array01=explode("/",$refer_inbound); Pick up array item 2 and you have the referer domain.

Pick up the last section.. "search?hl=es&q=hot+dog&lr=&aq=f&oq="

If it is GOOGLE as in this example then..

explode on the "&" -- then find the "q=" array item and you have the words "hot+dog";

Once the user is identified the problem is solved. - then you know what to do..

I have this an API for you to access it you are interested.

Wayne philip

  • 1 Comment
  • 1. Picture of dalington by dalington - 13 days ago (2016-02-16) Reply

    are you saying that it works for only search on the particular site the API resides on.


PHP Webmaster Tools API: Access Google Webmaster Tools API for given sites

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Manuel Lemos by Manuel Lemos package author package author Reputation 12080 - 23 days ago (2016-02-07) Comment

Nowadays it is not possible to know what users have searched on Google when they are lead to a site.

Google changed the origin page URL before redirecting the users to the sites precisely to protect the user privacy.

If you want to show advertising based on what the user is looking for, you need to use some other data source.

What you can do is to is to use Google Search Console API statistics to figure what keywords the previous users used when they were lead by Google to your site pages.

I will not tell you precisely what the current user is looking for but it will give you a closer idea.

This class can be used to retrieve that information from Google API.

  • 4 Comments
  • 3. Picture of dalington by dalington - 6 days ago (2016-02-23) in reply to comment 2 by Manuel Lemos Reply

    well these is quite these really nice but maybe if i break it down nicely you might be able to help me case 1 a regular user of my site searched for pets, music, phpclasses on google and later decided to visit my site probably on a new tab how do i now know the keywords or query that he/she searched last on google and use it and show them relevant adverts.

    case 2 a user of my site like computer and phone and he always read articles related to these those keywords on my site forum how do know these keywords without overloading my database with these use keywords at all times

    Case 3 is there a possible way can i can check my site users emails on any question and answer site like quora, reddit and ask.com and see if they exist there and if the exist what questions are they asking ? so that i can collect these data's and show them adverts or suggest a post to them based on that

    case 4 how i access the email of my site users to check title and description meta tag of links they shared on facebook and twitter. so that i can be able to suggest them posts or ads based on that

  • 4. Picture of Manuel Lemos by Manuel Lemos package author package author - 6 days ago (2016-02-23) in reply to comment 3 by dalington Reply

    You do not know the keywords that particular user searched on Google because now Google made it impossible to know.

    What you can now is the keywords that all users have been using in the past so Google sent them to that page. For that list of keywords you may present him relevant ads to those topics.

    From then on you can set a cookie for that user, so when he returns to your site, you already know what topics are relevant to him.

    I do not think there is a way to get that information from quora but if a user visits your site clicking on a link in quora, you may find out the page he came from looking at the HTTP referer header of the PHP request his browser sent when he visited your site.

    I do not think any site discloses the user email without the user permission. With the user permission you can ask using OAuth authentication. It is the same used to login in the PHP Classes site using your Facebook or Google account.

  • 5. Picture of dalington by dalington - 6 days ago (2016-02-23) in reply to comment 4 by Manuel Lemos Reply

    quite revealing and interesting am really grateful and i appreciate your assistance. But please lastly, in reference to your comment "From then on you can set a cookie for that user, so when he returns to your site, you already know what topics are relevant to him." can you explain to me how to easily implement that. thank you

  • 6. Picture of Manuel Lemos by Manuel Lemos package author package author - 6 days ago (2016-02-24) in reply to comment 5 by dalington Reply

    You set a cookie that lasts a long time even after the user exits your site. You can also use PHP sessions setting their lifetime to be a long period, as they also use cookies.

    The cookie or a session value may hold a key that identify that user in the records of the database that store the topics of the keywords associated to the pages that he visited.


Recommend package
: 
: