Hi,
I am wondering how to use a custom variable with the Facebook “Like!”-Button…? Where do I have to write the
piwikTracker.setCustomVariable(1, Facebook, Like) ?
<script type="text/javascript"><!--
window.fbAsyncInit = function() {
FB.init({appId: 'your app id', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/de_DE/all.js';
document.getElementById('fb-root').appendChild(e);
}());
document.write("<fb:like show_faces='false' ");
document.write("href='");
document.write(location.href);
document.write("' font='arial'>");
document.write(" </fb:like>");
// --></script>
Thx & Greetings,
Joe