How to customize ads tracking of Adsense? - tracking

I know my question is relevant to Custom click tracking for adsense
but I am here asking it again because I need more answers of above mentioned question. only one answer already there, But it is not what I need. can u people re answer same question again please or answer this question?
Actually I want to show a line chart similar to google analytics showing how many times ads on mysite has been displayed and how many times the ads has been clicked. Can i achieve this?

have you tried this? i have answered on question referenced by you.
my Answer:
Even though there is no good way but it is quite easy to do so. First of all put your adsense code in a div like:
<div id="adsDiv" class="adsDiv">
<!--here your adsense code-->
</div>
now in your jquery code use this:
$(".adsDiv").on("click", function(){
setTimeout(function() {
//here call to php function via ajax etc and in php you can easily check which user is currently online via session who clicked on ad.
}, 5000);
});
note your php will function called after 5000 ms which means user has clicked and viewed your ad. you can increase or decrease it as per your need.

You can check your particular click in your report part as like below....
Here you can check the add size 970X250 is clicked 7 times and other are..

Related

Tumblr like button not working after infinite scroll ajax recall

There are a few similar posts but they are quite out of date and Tumblr has updated the like part of the API not too long ago as far as I'm aware.
Creating a like button is as simple as
{LikeButton}
and this works great, but after the ajax recalls to get more posts from what would be the next page, the like button no longer works.
I have had a look at the documentation and it states that I need to implement one of the following, I was wondering if anyone could point me in the right direction? I've been trying to get this to work for hours.
I made up an example blog if this helps contribute to answering, the javascript can do the mass amount of the implementing of new images.
http://stackoverflowexample.tumblr.com/
If you need anymore info, i'll happily edit this and add what's required, thank you!
Overview
Adapted from my previous answer here: Using Tumblr Like Button with Infinite Scroll
Tumblr states we need to call one of two functions to get the Like Status. I would suggest the following:
Function: Tumblr.LikeButton.get_status_by_post_ids([n,n,n])
Description: Request Like status for individual posts. Takes an array of post IDs
Once the ajax request is successful , we should have a data object (containing new posts, etc).
We need to create an array of postIDs, which is an array containing an ID / number for each post in the data object. Easiest way to add the the post id is to use the theme variable {PostID}.
Example
HTML
<article class="post" id="{PostID}">...</article>
jQuery Post IDs Array
var $newPosts = $(data).find('.post');
var $newPostIDs = $newPosts.map(function () {
return $(this).attr('id');
}).get();
Tumblr.LikeButton
Tumblr.LikeButton.get_status_by_post_ids($newPostIDs);
Hints
Create the array and call Tumblr.LikeButton once the ajax request is successful and in a place where you run other functions for the new Posts. This can also be done with pure javascript as using: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map

Google +1 button on Google sites

I have a google site and I want to add several «+1»-buttons on one page.
As I understood, all different buttons must be related to different URL's, so I created one more page with a «+1»-button, which can be simply added.
Now I want to have the same button on the main page, how can I achieve this?
I've already browsed many things about it, f.ex., https://developers.google.com/+/web/+1button/
but I can't add Javascript on Google sites!
That's ridiculous, it has information about how to add it for other sites, but not for their own.
I re-read the documentation here:
https://developers.google.com/+/web/+1button/#plusonetag-parameters
The ability to control each button individually is available in platform preview only.
Sorry.

google plus, do I link the main page or sub pages

I have a page that consist of a daily updated front page with every day archived in a sub-page. The sub pages are either a funny picture or a joke. The pictures and jokes have a like and share option (for facebook, stumbleupon and pinit for instance), which obviously link to the picture or joke in question. I'm puzzled what to do with the google plus button though.
What is good pratice? Link to google plus with the link straight to the picture (sub-page) or set it up to share the main page?
so this:
<div class="g-plusone" data-size="medium" //...// data-href="http://www.amazingjokes.com/"></div>
or this:
<div class="g-plusone" data-size="medium" //...// data-href="http://www.amazingjokes.com/?view=img&date=2013-06-16"></div>
Thanks
I would concur with what Scarygami says, but also add that this may be a scenario where an interactive post/share might be appropriate as well. You could have the shared info go to your top level page, and a "Visit" button go to the more specific sub-page.
Really depends on what you want to do.
Linking the +1-Button to your main page will have an accumulated count for your page, while linking it to the picture will have a count per-picture which I think would make more sense in your scenario.
Of course you can have an additional +1-Button for your main page so people can show their appreciation for your page in general. If you have a Google+ Page associated with your site you could also use a page badge for this.

magento - back button (without using categories)

there are a lot of back buttons available on the market. Free and paid ones.
But the don't work on my store, because they are all category based.
That's my problem.
In my store i don't use categories, only attributes (in combination with Amasty Improved navigation).
But all back buttons are based on categories.
Can anyone help me to solve this?
I want a back button which goes back to the filtered products (by attributes).
Or does anyone know a extension for this.\
I have magento 1.6.2.
You can check it out on testwinkel.liefstoereigenwijs.nl
I'm not sure why you want to avoid using categories, but have you tried using javascript?
<a href=”#” onClick=”Javascript:history.back();”>GO back</a>
The only problem with this, is that when a user enters your product page from let's say, goolge, the user will be redirected to google.
You can also take a look at this threat: Back to previous page with header( "Location: " ); in PHP

What is a good invisible captcha? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
What is a good invisible captcha? My site requires JavaScript so anything which requires that is fine.
Add a new input field, label it "Please leave blank", hide it using CSS, and ignore the post if that field is filled in. Something like this:
<style type='text/css'>
#other_email_label, #other_email {
display: none;
}
</style>
...
<form action='mail'>
<label id='other_email_label' for='other_email'>Please leave blank:</label>
<input type='text' name='other_email' id='other_email'>
...
</form>
So a human being won't see that field (unless they have CSS turned off, in which case they'll see the label and leave it blank) but a spam robot will fill it in. Any post with that field populated must be from a spam robot.
Here's a simple math captcha by Phil Haack. It even works with javascript disabled.
In his own words:
The way it works is that it renders
some javascript to perform a really
simple calculation and write the
answer into a hidden text field using
javascript. When the user submits the
form, we take the submitted value from
the hidden form field, combine it with
a secret salt value, and then hash the
whole thing together. We then compare
this value with the hash of the
expected answer, which is stored in a
hidden form field base64 encoded. If
javascript is disabled, then we render
out the question as text alongside a
visible text field, thus giving users
reading your site via non-javascript
browsers a chance to comment.
I've used the technique of a Display:None text box, and rejecting any submission that fills it in and had pretty good luck with that.
For what it's worth Google is rolling out 'Invisible ReCAPTCHA' (https://www.google.com/recaptcha/intro/comingsoon/invisible.html), I already got whitelisted with my site. At the moment implementing it, however the docs aren't that elaborated...:)
MTCaptcha is a reCaptcha alternative captcha service that supports invisible captchas similar to the recently launched reCaptcha V3, where its invisible to most users but shows a captcha if it feels the traffic is risky.
If you mean - use captcha that a human can't see as a human validation test - i think it's impossible.
This way a robot ignoring the captcha will pass for a real person! Seems like a trap for a naive spam robot.
If you want your captcha-protected site to work with clients that have no javascript - then you should hardcode it into html.
Also, if you can reliably identify trusted users (either by judgment call or by detecting some usage pattern) - you can let them post to your site without captcha.