CityGrid Impression Tracking for Hyp3rL0cal Directory

I’m working to make sure all my starter kits for CityGrid Places API are billable right out of the gate, all you should have to do is deploy, plugin your publisher code and submit to the CityGrid account management team for approval.

I’m not quite there yet, but getting closer.  Today I implemented the CityGrid Tracker on the Hyp3rL0cal PHP Local Directory, in hopes it will now be eligible for earning revenue with CityGrid “Places that Pay”.

There are 26 total action targets you can implement on a CityGrid places detail page, with 12 of them being billable.  Action targets are connections with CityGrid merchants that we track on.   For example just showing a business is one action target, others include showing reviews, offers and maps.  When you have CityGrid tracker in place, you get credit for these actions and if your approved as billable, you will get revenue share on these actions.

On the Hyp3rL0cal detail page I implemented this code for the tracker:

As you can see the action_target is for listing_profile, which is the most common action_target implemented.  Next the listing_id, reference_id, and i values are all pulled from the Places API response I just made to get my business listing.  So I plug in those variables.

After that you have to provide your publisher code and using the $_SERVER object I pull the User_Agent from my site user.  Last I set a placement value that is unique to how I want my reports setup for my tracking–I chose hyp3rl0cal_detail as this is the detail page on my Hyp3rL0cal site.

That is it, now the PHP version of the Hyp3rL0cal Directory should have everything done to be approved as billable.  I hope…I still have to submit and get it 100% approved.  Keep you posted.