473,511 Members | 14,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding javascript tag in XML feed

Total newbie here for this so please be patient.

We manually update our XML feed when we publish an article on our
website. Can we add a javascript tracking pixel (from phpadsnew) into
the XML file to track how many times our feed was accessed? Just to get
a rough idea how manyh subscribers we have?

Not sure if copying and pasting a javascript into the XML source would
work.

Any thoughts?

Nov 10 '06 #1
6 2359
af**********@gmail.com wrote:
Can we add a javascript tracking pixel (from phpadsnew) into
the XML file to track how many times our feed was accessed?
The "tracking pixel" trick counts on the browser following the HTML's
instruction to fetch an image. Depending on how the XML is being
processed, it may not be going through a browser and images may not be
being fetched.

So the answer is an extremely emphatic "It Depends."

Why not just instrument the server to directly report how often the file
is fetched?

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Nov 10 '06 #2
Joe Kesselman wrote:
Why not just instrument the server to directly report how often the file
is fetched?
Hi Joe,

Any tips on this one? I have access to Cpanel and root access. I am not
versed in programming but can following instructions. Any tips would be
great!

Nov 10 '06 #3

af**********@gmail.com wrote:
We manually update our XML feed when we publish an article on our
website.
I presume you mean an RSS feed here.

Can we add a javascript tracking pixel (from phpadsnew) into
the XML file to track how many times our feed was accessed?
This is a lot of questions, so I'll try to deal them one-by-one.

RSS is a syndication protocol, although it's usable (and used) in two
ways. One is to supply a "summary" feed, where the feed is used as
teasers and links into a site. The other is to send sufficient
"content" embedded in the feed items that users read everything they
might wish to from reading the feed itself (usually long text articles,
but images are still puled from the source site). Obviously both of
these applications of the technology have quite different meanings for
"user" and "to read", meanings that affect the relevant stats you want
to count.

In a pure "content" RSS feed, you just can't count the "readers" unless
you embed deliberate tracking, because you've already published and
permitted redistribution of everything they need to make the content.
Now the tech issues.

You can't "add JavaScript"

You might get the same results as adding JavaScript by finding what
that JavScript does, then doing that directly. A "JavaScript tracking
pixel" is just a tracking pixel that's embedded in a page by using a
<scripttag rather than am <imgtag (it works no better, but it can
be easier for content authors to set up). If you find what the URL to
the image is (probably complex and with a site id embedded in it) then
you can add that pixel to the RSS feed.

Adding an image to an RSS feed item like this usually involves sending
some encoded HTML in the description elements for the feed items. That
itself isn't trivial -- some blog publishing engines do it well, other
quite serious RSS creators do it badly or almost not at all. We'd have
to know just how your feed is created to advise further.

If you're really capable of doing this, then (IMHE) you can set up your
own "web bug" pixel tracker, hosted on your own server, and do it that
way. This avoids paying money to a tracking service, loses the ability
to cross-reference users with their browsing habits on other sites, but
best of all it's likely to still work for privacy-sensitive readers who
block web bugs from known tracking companies.
Just to get a rough idea how manyh subscribers we have?
What's a "subscriber" ? Subscriber to the field, or someone who later
reads your syndicated content?

If you want to count the feed subscribers, then look at your server
logs. If you want to count the reading eyeballs, then embedded web bugs
are a practical way.

Nov 10 '06 #4
Hi Andy,

Thank you for the detailed reply. Know that it's very mcuh appreciated.

At the end of the day, we want to measure how many people have either:

1. Subscribed to our RSS feed
2. How many people are reading our feed

Sounds like we first need to look into the logs and count how many
times our feed.xml file was accessed? This, I am hopng, is a rough
estiamte as to how mnay users may be reading our feed.

Does that work?

Nov 10 '06 #5

af**********@gmail.com wrote:
2. How many people are reading our feed
Depends what the feed is. Do people who "read" your feed do it by
following links from your feed back to your web pages, or do they read
something that's entirely contained in what you supply with the feed?

If it's the first (most common), then ignore RSS and just track the web
traffic.

If it's the second, you need to embed a tracking pixie in the HTML
description.

Nov 10 '06 #6
Andy Dingley wrote:
If it's the second, you need to embed a tracking pixie in the HTML
description.
Our feed contains the first paragraph of new articles + a link. So this
means we can use a javascript tag within the most recent article
description tag of the XML file, this should work?

Nov 11 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6042
by: dthelwal | last post by:
I'm looking for an applet or script to feed from an RSS page (perhaps RSS 0.91) and turn its <title> and <link> entries (perhaps using <description> as well) into a scrolling news ticker where the...
1
2718
by: it hates me | last post by:
Hey gang, I hope you're all well and you're having an enjoyable week I'd love to be able to have a custom news feed on my web page through Javascript The only custom news feed I can find for...
4
1975
by: petermichaux | last post by:
Hi, If I type http://domain.com/product/5 into my browser I will see the product details in the main div plus a side bar div containing links to other products. This side bar is common to all...
0
1047
by: lauren.s | last post by:
Hi, I have a javascript scrolling ticker, which takes a .NET parsed XML feed and displays it. Alone, in a .aspx file, this code works exactly as it should. It scrolls, it displays the feed,...
4
3099
by: elsigh | last post by:
I'm wondering if anyone has any ideas about a way to quickly convert an HTML DOM Node into an XML Document. The goal is that I want to perform XSLT on the Node, which is coded correctly as XHTML....
7
1868
by: satishr23 | last post by:
Hi, I am using AJAX to display dynamic RSS feeds in my web page. So on page load i am callin the AJAX function Start_Timer() The body of Start_Timer() is as follows. function Start_Timer() { ...
5
3192
by: Liquidtouch | last post by:
I'm not much of a HTML or Javascript programmer but have a little experience just hacking away at it. I am creating a HTML application and would like to be able to add or remove rows of a table....
2
2772
by: mdock | last post by:
Hello, I have a javascript grid on my ASP page which displays information about the history of specific units produced in our manufacturing facility. One of the results is the order number on...
1
4879
by: swethak | last post by:
Hi, I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.