Custom click tracking for adsense - tracking

I need to identify my users when an ad is clicked. For example, when user A is online, I need to know that he was the one who clicked the ad unit.
When using my own ads, this was a piece of cake (using URL redirection) - however, now we are planning to switch to Adsense - which renders the Ad via javascript - hence I cannot setup a redirection there.
How do I track - which user which ad unit - in case of adsense?
Thanks alot.
--
Maku

This should help - http://blog.openx.org/01/google-adsense-click-tracking-integration/

Related

Azure B2C Custom Policy Social Button Showing Above Local Account Fields

I have added social logins to out custom policy. I am using the latest version of unifiedssp
urn:com:microsoft:aad:b2c:elements:contract:unifiedssp:2.1.8
For some reason the div containing the social buttons are appearing above the local login, whereas if I use the same page version with a user flow the social buttons appear below the local login.
I have since used default B2C pages - Classic and Azure Blue, i.e.
<ContentDefinition Id="api.selfasserted.unifiedsigninsignup">
<LoadUri>~/tenant/default/unified.cshtml</LoadUri>
.....
I find that classic puts the social buttons above the input form and Azure Blue below.
Is this controlled by something in the HTML or CSS/JS as I thought we were not meant to alter the order via JS.
Thanks

Adwords with Landing Page then Branch Link to appstore

I'm marketing my app on Google Adwords and my setup is like this:
1- Display network ads
2- Ads take the user to an instapage landing page that has CTA for download
3- Download button takes user to App Store/play store
My question:
Is it possible to link Branch to Instapage and how? - meaning I want to know which ad brings the conversion = as per my setup now if I have more than one ad I wont know which one got me the download.
Note: I'm paying for clicks on CPI
Thanks!

Custom variables in Google Analytics

I have an application in which I am displaying dynamic advertisements. There are some ads displayed on pages without logging in, and others on pages that you have to log in to access them.
First, I want to be able to track how many clicks have been made on a given ad accessible anonymously.
I added this code to the onclick event of the ad
onclick="ga('set', 'dimension1', '#item.Id')" // #item.Id is the Id of the Ad
I can see that the event is triggered in the GA Debugger in Chrome, but I cannot see the result in GA even after 24h.
Second, I want to be able to track the Ids of the users who have clicked on the a given ad. And I don't know if this can be done using GA.
An ideas ?
Custom Dimensions and Metrics are necessarily connected to an interaction and cannot be sent on their own - they must always be followed by an interaction hit (pageview, event, transaction etc).

Timeline app appears only if page is currently liked

This is the first Facebook App i've created since the Timeline changes. Everything appears to be working the same, except for adding the app to my page's Timeline "Favorites"(?) (the boxes at the top near the About section). A large majority of the traffic to this app will come from visitors seeing the app tab on our page.
I'm attempting to add it using the following URL:
http://www.facebook.com/dialog/pagetab?app_id=MYAPPID&redirect_uri=MYAPPURL
Then I select the page, and click "Add Page Tab".
This works fine - I can then swap it's position, view the app, edit settings, etc.
I set up the tab how I want it, and then log out and visit my Facebook Page directly to view the app tab as a visitor would. The app is no longer there. Log back in, everything is fine, log back out, it's gone. It appears that if you do not already Like the page, you cannot see the app. If you do like the page, you can see it. I'd like the app to be viewable by people who do not like the page as well, as the app has a fan gate of it's own.
I've disabled Sandbox mode as well so i'm not sure what's left to do.
Any help is appreciated.
You mentioned in the comments that the app is restricted to US users:
Because your app is restricted, it won't be displayed to logged-out browsers - this is expected because unless the user is logged-in, their location and age can't be determined in order to check the restrictions you've set
If you must have the app visible to logged-out users, remove the API-level restriction and use the details passed in the signed_request to show or hide the app's content
{edit} I missed the edit to your question {/edit} - it may also be that your existing signed_request processing code is failing for logged out users

How to detect if user has switched Rails 3

A user logs into my application in a tab in a browser
They get an email and click a link which opens a new tab in the same browser and logs them in under a different email say.
If they go back to the first tab they are no longer the same user and I want the page to automatically detect this and then reload or redirect them if they are unauthorized to view the page.
Anyway to do this?
Or, if you really want to know when user is switched the tab, try this library:
visibility.js
As stated by #Hck:
add javascript code to reload page periodically (for example once per 30 seconds) – Hck
JavaScript is pretty much the only way to make pages do stuff after they're loaded. Note that in pretty much any user authentication system, a given browser will only be logged in as one user at a time, so as soon as the second tab opens, that browser will be acting as the second user - they can still see the current content of the first tab, but links (for instance) will no longer work unless the second user was also authorized to use them.
There are some JQuery plugins that do this sort of thing, like PeriodicalUpdater, or you can write your own (an example).