Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9035975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:52:52+00:00 2026-06-16T08:52:52+00:00

I need to design a website system where users create an account, register their

  • 0

I need to design a website system where users create an account, register their website and get a custom tracking code that display an image/link. I would love to hear some ideas.

The snippet needs to be able to do the following:

a) Track the amount of unique impressions the website gets.

b) Track user visit duration (this need to be precise in seconds until the user leaves the website/domain)

c) Have a tracking snippet code display an clickable image (I should be able to change this image based on which site is showing the snippet).

d) Be able to change the url/link of where the visitor will go if they click the image. (When a visitor comes to the site, the snippet needs to display an image of my choice and link of my choice).

e) Track the clicks of this image.

I read up about pixel tracking but this design and the metrics I need are a bit different. Seems like I might do some of it by including <img src="http://www.mydomain.com/getImage.php?id=5123" /> and process some of that info in my php script but I want to make sure there is not a better way/more efficient way to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T08:52:53+00:00Added an answer on June 16, 2026 at 8:52 am

    What you will want to do is have your users embed a piece of javascript coming from your server. Example:

    The end point trackingCode.php will be doing some of the tracking work and then output a javascript that will be performing some other tracking tasks.

    a) track unique impressions
    You can do this immediately on the server side in trackingCode.php

    b) track user visit duration
    One method is to send a periodic ajax poll from the javascript to an endpoint on your server. This way you can tell approximately how long the user stayed on the page.

    c) Display a clickable image
    Your javascript will use document.createElement (or equivalent) to add the image to the host website

    d) Be able to change the url/link of where the visitor will go
    As you’re dynamically generating the javascript on the server, you can generate different javascript for each website, based on the id param you received. You leverage this to have a different image source and click-through url in the image you’re adding to the website in step c above.

    e) Track clicks on the image
    Instead of creating an element with a child element in step c above, you can create an and attach an onclick event handler to it.
    The event handler will do two things – send an additional tracking ajax request to your server and redirect to the desired click-through url.

    Another method is to create an element with a child , and have the href attribute of the point at a url on your server (something like https://www.mydomain.com/clickThrough.php?id=5134) . This will do the tracking and return a 302 http status (temporarily moved) which will cause the user to be redirected to the actual desired click-through url.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to design a system in a website to display different pages to
I need to design a system that will control access to certain information. The
I need to design a responsive website that is responsive also when the browser
I need a tool to compare the design of a website, I do not
I need to design a data structure that supports the following operations: search element
I need to design a page for a web application that makes sense for
I need to design a bug alert system, where the web support team is
I started to design website using the 960 grid system everything works amazingly apart
Imagine that you want to design a tennis booking system. You have 5 tennis
I'm designing a new website and I need a login system (Preferably in PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.