My System
Apache 2.2.9
PHP 5.2.9
MySQL client version: 5.1.28-rc
Openx v2.8.5
I am using the Javascript single page call to serve my ads. I am running an in house CMS where everything is processed through a template.php file.
My Issue
The success of an ad being served seems to be very hit and miss. The placement or type of the ad does not seem to matter. For some reason, the loading of the ads is very spotty. Each page serves an average of 3 ads. Sometimes none show up, sometimes 2, sometimes 1. There does not seem to be any consistency in the problem occurring. The problem seems to have worsened since I updated to the most recent version and started using Single Page Call.
I have checked the source. All Javascript script is in place, but the ad content is not generated under the script where it should be. The space where the ad should be is just empty.
No Javascript errors are generated.
Any help will be greatly appreciated.
For me, this happened when the campaigns assigned to the zone were all contract and there was no Remnants assigned. OpenX basically had no banners with impressions left to display.
Also, another time t his happened was with their implementation of Single Page Call. OpenX pre-loads all zones you have put into the array on every page, regardless of if they are displayed or not. So if you have a lot of zones, the ones near the end of the array can not get any ads because the ones above it take all the ads with impressions.
If you have a CMS with a lot of advertising zones, you're going to have to dynamically control the Javascript array to only load the zones needed for display on that specific page. I have a solution for Joomla if you need more details.
Related
We have a network of Bigcommerce sites, on which we've installed several tools that are controlled by one central site, using Bigcommerce's include feature. The url passes a get value to the php, and retrieves all of the pertinent information in our DB and displays several things.
The problem is that, as of last night, all of the 40-some sites began displaying content from the newest user - the newest DB entry. I deleted the newest user, and it reverted to the user just before that.
The weird part is that when I check the url being included, the correct information is displayed.
Check it out (I've stripped out most css and js, so most relevant info is shown) -
Site URL: http://www.epicflowers.us/
Included URL: http://epicflowers.com/toolbox/fetchToolbox2/toolbox.php?store_id=123456789
The colors and the text should be exactly the same. It appears that the DB queries are returning the correct information, but the site including the url are not.
What I've already tried:
Duplicating and renaming files, in case it was a caching issue.
Ran an ajax call to retrieve the same info (which worked, but it's too slow)
This didn't seem to happen as a result of changing anything, and the PHP side seems to be working fine. No one has touched the code in a few days, but the support tickets started coming in early this morning. It's altogether possible that it's completely unique to BigCommerce.
Any ideas?
Update:
It appears the BC include is ignoring the get values at the end of the url, so http://epicflowers.com/toolbox/fetchToolbox2/toolbox.php?store_id=123456789 appears as http://epicflowers.com/toolbox/fetchToolbox2/toolbox.php, obviously negating anything unique about the store the code is on.
Any ideas on why? Bigcommerce hasn't published anything in their blog that suggests this has changed.
What I am trying to do is to make something similar to what I see all the time on almost any website. The button that says Share to facebook. The goal for me is to let my guests share the item they are viewing in my store (Ran on prestashop) on their blog I run (Running on Oxwall).
The goal is for the button to not only link to a blog post submission webpage but to already have the subject line filled out with the item they are sharing's name and the blog post to display the information about the item. I would like to try and do all this using PHP. I am not sure how to go about doing it but I am sure that I could pass the value. Please note that I can mod BOTH the blog site and the shop as I run both and want to connect them.
As an extra bonus I am also running a forum using phpbb3 if I could do the same thing but onto that as well I would greatly thank you. I am trying to interlink everything into one big network. I know its not an easy task but I am sure there is an easy way to pass data onto the other site so that this can be done.
Facebook a 2 tools to get items informations in the page, it parses the page looking for the most common tags and it uses OpenGraph.
You can also provide product informations in the head of your page (between head tags), then blog side, you retrieve only the contents and parse it as XML.
I advise you to cache this data to avoid useless connections between websites and awful overloads while parsing.
You can use your own specifications, Open Graph or another standard, but i advise to use a standard.
i have static pages created on my site for different articles, but problem is that its not dynamic page, means its just created once and its done. so now m worried how to count page views ? i mean when some user visit through search engine :( the count's did not +1 in database it only records count of page views when someone search that particular page and then come. In this way the users visited via search engine is not counted...
so i got one idea...
that we can put some ping php type code which when visited page any how either through google or any where it will be pinged and it will udpated specific table in mysql...
please guide me...if i m right or not... provide me php code for it...thanks
Try to install Google Analytics. This implies you insert some JS code into your page, once at the start. Then, each time user opens the page (and doesn't have his JS disabled, which is most probable case) JS fires up and make some secret request to GA, recording this visit.
Once upon a time I've seen a trick to augment TRULY static pages with GA counter, through some PHP preprocessor hooked via .htaccess, like this: Action text/html /cgi-bin/add_ga.php. This involved parsing HTML and inserting a couple of <script> tags into the header, and then serving page to the visitor. Entire directory of static pages, updated independently with any frequency, was hooked to GA this way.
My app is loading a nested version of facebook inside of facebook. Its only doing this when you click on the App Bookmark, or invitation sent to users.
Please see the link, you will see it immediately (look at the header)
http://apps.facebook.com/passparcelapp/?fb_source=bookmark_apps&ref=bookmarks&count=0&fb_bmpos=1_0
I'm racking my brain to figure out why this is happening.
Please help.
Your code has two "fb-root" divs (which will mess things up) and two fb.init()s which will also mess things up.
But the main problem is probably because you also try to load jQuery (as other libraries) twice - once near the bottom of the body, once in the header - this is leading to JavaScript errors that will cause your redirect. The timings of the load will impact the behaviour, which is why you get differences on local and live - and it may randomly change again.
You also have outside the that shouldn't be there.
You'll need to seriously tidy the code up first - then it will hopefully just work. But right now, all bets of off!
This is really a point me in the right direction question. What path should I take if I want to display the number of page views each gallery page receives?
Retrieve Google Analytics Data via PHP, or
Capture the page views directly on my pages with my own PHP and mySQL setup?
Seems, like number 1 would be the better choice. I just don't know how difficult this option will be. Any insights on this?
Option 2 is definitely simpler.
If you do figure out how to get the page results out of Google Analytics, they will not be up-to-date. It takes Google at least several hours before the page views show up.
That also depends if You want to have info on more questions (statistics). I often use custom setup to track such things cause I can later use some data to do statistics about users actions.
For example, You want to give users (owners of photos) info about witch users (male or female, 30+ or below 30, and so on) are viewing. How many guests, how many registered users. There are tons of data You can retrive by building custom system.
It all depends on what You want to have at the end.
I suspect that if You want to have only raw data about number of users You coud somehow parse data from Google Analytics as well.
And as posted below. Google have to take time to update, custom setup not.