Tracking pixel
Zev
Registered Users Posts: 20 Big grins
Hi!
I know this is going to sound like a silly question, but I'm trying to add a tracking pixel to my front page, so that I can track how much traffic comes from a specific site (even if they just land on my front page).
The problem is, I'm not sure where to put the code for that. Can anyone help me with this?
Thanks,
Zev Steinhardt
I know this is going to sound like a silly question, but I'm trying to add a tracking pixel to my front page, so that I can track how much traffic comes from a specific site (even if they just land on my front page).
The problem is, I'm not sure where to put the code for that. Can anyone help me with this?
Thanks,
Zev Steinhardt
0
Comments
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
The code is below. According to FB, it's supposed to go in the header (between <head> and </head>. But for the life of me, I can't figure out how to do that. In legacy Smugmug I was able to, but in the New Smugmug, I can't seem to find it.
Zev
<script type="text/javascript">
var fb_param = {};
fb_param.pixel_id = '00000000001';
fb_param.value = '0.01';
fb_param.currency = 'USD';
(function(){
var fpw = document.createElement('script');
fpw.async = true;
fpw.src = '//connect.facebook.net/en_US/fp.js';
var ref = document.getElementsByTagName('script')[0];
ref.parentNode.insertBefore(fpw, ref);
})();
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=000000001&value=0.01¤cy=USD" /></noscript>
Facebook: The Graceful Image
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks for the help, Mike.
Zev Steinhardt
Facebook: The Graceful Image
Also, google analytics lets you set certain tags in your URL that can then be tracked by analytics. For example, instead of linking to "www.mywebsite.com" you could link to "www.mywebsite.com?referred_from=facebook". Then Google Analytics could tell you how many hits had "referred_from" as "Facebook" ... or if you posted to G+ you could set it ="G+" and Google could tell you how many came from there too.
Hope that helps.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Zev Steinhardt
Facebook: The Graceful Image
I didn't want to revive this old thread and my question might seem obvious or repetitive, but I just want to make sure I'm clear on something... Since the New SmugMug doesn't work with JavaScript code, whenever I come across a tool that requires placement of code "before the closing /HEADER tag of your website's template" and that code starts with , I'm unable to use that tool, right?
Thanks in advance for your advice.
PS. I'm not a coder or web designer, so I know very little about the technicalities. However, I'm willing and open to learning.
Yuri
Correct.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk