How to calculate openX banner display portability - openx

Is there a formula or way to calculate the openx banner display portability
because i have some banner(campaign) are contact some are remnant and some of those has capping but some not
it seem the portability was quite hard to control
and i heard that openx will use old stat to calculate the priority of the banner too
so is there any formula to calculate it out?

Yes. there is formula
(Banner weight * campaign weight / SUM(banner weight * campaign weight for all banners in the zone).
The easy way is to understand that first you got campaign, and then banner!
if campaign A weight is set to 50, campaign B to 10 and C to 40, this will be the delivery sheme.

Related

Woocommerce and Gravity Forms problem with deliveries

It's been a week since I'm trying to resolve this, and I'm just stuck. Please help :)
Here is the problem: I have a website with catering services, that are delivered every day to the clients. It's done using wordpress, gravity forms + addons (woocommerce and perk plugins with calendar and conditional pricing) with complicated conditional logic as the meals have different calories and so on. It's only one product, but it's coming from Gravity Forms itself. The form is calculating the number of days as a hidden field and I want to calculate the delivery cost by multiplying the number of days, that the Client placed the order for by the flat rate cost of a particular delivery zone in woocommerce (3 zones with different delivery costs in total). Let's say the cost of the delivery to one City is $5 and the order is placed for 10 meals, meaning 10 deliveries with fresh meal every day - so I want the delivery cost to be $5*10 = $50 for that order. I tried to achieve this with Gravity Perks- not possible, with Woocommerce Addon for Gravity Forms- it's possible to override the number of items ordered, but not the delivery cost itself... and I'm out of ideas :(
Does anybody have any clue how to achieve this?
Huge Thanks and a big beer in advance :)

Conditionals based on perceived gender

Is it possible to use data stored in cookies or from a web browser to determine if a website's visitor is male or female.
I'd like to use this sort of data to style my site with a different color scheme for males.
It's impossible to know the user's gender for a fact (they could lie; I know many people who do often during registrations to maintain anonymity); but you can estimate based on browser history.
One person created a little hack where you can estimate gender by browser history:
http://www.mikeonads.com/2008/07/13/using-your-browser-url-history-estimate-gender/
QUOTE:
... modified the SocialHistory JS so that it polled the browser to find out which of the Quantcast top 10k sites were visited. I then apply the ratio of male to female users for each site and with some basic math determine a guestimate of your gender. The math is really quite simple, I just take:
1 / (1 + r_1 * r_2 * … * r_n)
where p_i is the ratio of men-to-women for the specific site. For example, if you had been to two sites that had a 2-1 ratio of men to women, the probability of you being female would be:
1 / (1 + 2 * 2) = 1/5 = 20%
If you had access to users' browser history you may be able to derive some method to estimate their gender.
Google Analytics also estimates gender, as well as Quantcast, others, and many cpanel software like awstats.
Users sometimes store their gender in local profiles on their PC, but without illegal spyware to sniff users, there is no clean legal way to gather this information which may or may not be stored in cookies in their browser based on the websites they registered for or are logged into which gathered their gender during registration.
Of course the very illegal way to be certain would be to access the webcam using illegal malware and then using facial recognition software you could set up an automated software to accurately determine the gender of every person who has a laptop or pc with a webcam. However unless you're some crazy hacker with no worries about getting arrested then I would avoid trying this if I were you.

Google Analytics, calculating an average for a custom metric

In Universal GA there are a number of pre-set metrics available to you that represent averages; things like 'avg time spent on page' and 'avg Bounce rate'. However when I create a custom metric, it seems there is no way to calculate the average of it, you always see the sum.
Is there a way to view the average of a metric rather than just the sum ?
I understand that Universal GA is still in public beta, is this just a feature that has been missed out ?
In the current version of Analytics you can now use "Calculated Metrics". Those can be used for creating averages, among other things. You cannot use them for min/max though, it is limited to rather simple calculations.
So if your CustomMetric is gathered at hit-level, you want to define your calculated metric CustomMetricAvg as
{{CustomMetric}} / {{Page Views}}
You didn't miss anything. Calculated metrics are not available.
There's now a Google Analytics feature request for this, please star it or add your comment (hopefully Google Analytics team will notice).
The other option is to export the data and do the calculations outside of Google Analytics. You could do a normal CSV/Excel export, use the Core Reporting API, or try the Magic Script.

How can you achieve targeted yet evenly displayed banners in OpenX?

Many banners are tied to a zone. All of these banners have different targeting requirements using the site:variable (I say "requirements" loosely as the banner can be displayed even when requirements are not matched). The reason for this is because all banners must ultimately have an even number of impressions; however, along the way, the system should use the best of targeting when possible.
An example of the desired logic is below:
Given -
Banner 1 Targeting: IncomeGreaterThan20k=1, FishingIndustry=1
Banner 2 Targeting: IncomeLessThan20k=1, FishingIndustry=1
Visitor Profile: IncomeGreaterThan20k=1, FishingIndustry=1
Case 1 -
Banner 1 Impressions = 999
Banner 2 Impressions = 1000
Zone Rendered to Visitor 1 - Banner 1 is displayed
Why?: Targeting of Banner 1 is better than targeting of other ads (more matches on site:variables), best targeted banner has impressions less than or equal to other banners = true, show Banner 1.
Case 2 -
Banner 1 Impressions = 1000
Banner 2 Impressions = 1000
Zone Rendered to Visitor 1 - Banner 1 is displayed
Why?: Targeting of Banner 1 is better than targeting of other ads (more matches on site:variables), best targeted banner has impressions less than or equal to other banners = true, show Banner 1.
Case 3 -
Banner 1 Impressions = 1001
Banner 2 Impressions = 1000
Zone Rendered to Visitor 1 - Banner 2 is displayed
Why?: Targeting of Banner 1 is better than targeting of other ads (more matches on site:variables), best targeted banner has impressions less than or equal to other banners = false, show Banner 2.
When there are more than 2 banners, the logic should be extended based on the number of targeted variables matched and the number of impressions.
How can you configure the banner targeting to accomplish this?
If this can be accomplished, is there a way to put importance weights on the various site:variables?
If this can be accomplished, can you adjust the threshold for the number of impressions difference that can occur between the ads? Rule: No ad should be rendered more than 10 time more than any other ad.
The number of targeting fields matching does not affect ad selection.
If 4 banners in a zone end up with their targeting as 'true' (as in, all targeting criteria are met) then they are all considered for delivery.
After that, if all 4 are remnant banners from different campaigns, the only thing which adjusts the ad selection is the campaign weight. If they're all equal weighting, they all have equal chance of selection. If campaign1 has double the weight of campaign 2,3, and 4, then it has double the chance of the other campaigns of being selected.
To do exactly what you wish would require a plugin which alters the ad selection process.
1) Set all campaign weights equal (lets say weight=10), and all campaigns as remnant
2) Once all banners with targeting=false are thrown away, analyze the remaining banners and give more weight to ones with more targeting criteria
3) During hourly maintenance, analyze the stats and give a higher weight to ones which are falling behind. You don't want to do this during delivery because querying stats during delivery will cause a lot of overhead to the delivery process, which should be as quick as possible without DB calls
Using weights does not guarantee equal impressions - if they have a 50/50 chance of delivering there is a chance bannerA will delivery 1005 and bannerB will delivery 995, etc. It generally works out well - but since you are altering weights depending on targeting you are going against the 'deliver evenly' idea and perhaps pausing an ad which has gone above the 10x is a better idea, and then re-activating once it is within 5x (or such)
Note - unfortunately, making plugins for OpenX isn't very easy unless you have someone who already knows their way around. Its not a matter of knowing PHP, its a matter of knowing the OpenX plugin architecture.

displaying element only for part of the users

I want to show elements only to x% of the visitors to my page.
Considering low traffic - is Random out of x% is enough in your opinion? or is it good only for high taffic?
Thanks
This seems like A/B testing or multivariate testing which you can do with Google website optimizer or a asp.net specific library like fairlycertain
Just using a random number wouldn't be a good solution in any case, low or high traffic the distribution of numbers could very well not be even at all.

Resources