Find Jobs
Hire Freelancers

Create Javascript to track site visitors

$30-250 USD

Selesai
Dibuat hampir 9 tahun yang lalu

$30-250 USD

Dibayar ketika dikirim
Write a javascript (not jQuery) external JS file (including functions) and separate on-page javascript code to call the functions. The external JS file would be called from all pages in a website. BUSINESS DESCRIPTION The business purpose is as follows: >Identify the first time a user comes to the website, and at that time capture the Date and time (UT), Referrer (if it exists), the first page visited URL, and parse out a specific URL parameter, if it exists, and to save all to a browser cookie. >Track every time a page is visited by that visitor by incrementing a counter variable to the cookie. >When a page is visited that has a specifically named form on the page (a lead form), concatenate the cookie contents and write to a hidden text fields existing on the form for that purpose. SUGGESTED IMPLEMENTATION Here is a suggested implementation. If you have a different/better implementation plan, that’s good too. >External JS file named [login to view URL], which includes the following functions and function calls: --function checkCookie(): check if cookie exists (will presume first visit if no cookie) --function saveCurrentDateTime(); Capture current date & time and save to cookie (GMT/UT, formatted to MM-DD-YYYY HH:MM:SS) --function saveReferrer(): Capture document referrer ([login to view URL]) and save to cookie --function saveFirstURL(): Capture window location ([login to view URL]) and save to cookie --function saveLEX(): check window window location for URL parameter LEX, and if it exists write to a cookie. --function getCurrentPageCount(): Get the current CurrentPageCount (visited pages at site) --function savePageCount(): Increment the CurrentPageCount (visited pages at site) by one and write to cookie --function checkAllPages(): On page load for all pages, run checkCookie(). If does not exist, create cookie (expire in 1 year from initial creation) and saveCurrentDateTime(), saveReferrer(), saveFirstUrl(), saveLex(), and set PageCount to 1. If cookie exists, savePageCount(). --function writeCookieToForm(): Check DOM on page for form with an id that includes “salesforce” (parse from full ID) and a text field with an ID: “sf-visitor-tracking”. If this text field exists, concatenate the cookie with DateTimeFirstVisited = [login to view URL]; Referrer=[login to view URL]; FirstPageVisited = [login to view URL]; LEX=[login to view URL]; PageCount=cookie.pagecount. >javascript to embed on all pages in footer (html body) to embed [login to view URL] and call checkAllPges(). EXAMPLE >First time user clicks from “[login to view URL]” on a link to “[login to view URL]”. >No existing cookie so it’s created and current date & time (GMT/UT, formatted to MM-DD-YYYY HH:MM:SS), Referrer = [login to view URL]; FirstURL = [login to view URL]; LEX = 123456; CurrentPageCount=1 >User navigates 5 more pages (CurrentPageCount=6). As the cookie exists no other variables in the cookie are updated. >The last page visited is www.PageContainsLeadSubmissionForm.aspx. On this page is a form that includes ‘salesforce’ in the form id, and a field with the id ‘sf-visitor-tracking’. The cookie contents are concatenated to the string: "DateTimeFirstVisited = 12-01-2015 20:31:59; Referrer=[login to view URL]; FirstPageVisisted = [login to view URL]; LEX=123456; PageCount=6" and written to the form field. QUESTIONS Let me know if you have any questions. Thanks for looking at this project.
ID Proyek: 7727960

Tentang proyek

11 proposal
Proyek remot
Aktif 9 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
Hello, Let me introduce myself real quick. My name is Akos, I'm a professional web developer. I've been reading through your project description and by the time I was finished the only question I though of is why do you want to have an in page js block to call checkAllPages()? Wouldn't it be in your opinion much easier to maintain the whole code if the external js file would handle it all (define the necessary functions and call checkAllPages() on page load)? I'm also curios if you have a strict deadline. As I do not work on anything else I'd be able to fully commit to your project. Kind regards Akos
$250 USD dalam 3 hari
5,0 (132 ulasan)
7,0
7,0
11 freelancer menawar dengan rata-rata $191 USD untuk pekerjaan ini
Avatar Pengguna
Hi) I am an experienced and serious developer (12 years of developing and 8 of it - webdeveloping) It isnt a hard work and I can do it for You. Lets go. But just a moment. Really I can start working on 27 May. But guarantee quality of work.
$200 USD dalam 4 hari
5,0 (13 ulasan)
4,7
4,7
Avatar Pengguna
I am an experienced web developer and an expert in Javascript/JQuery/HTML5/AJAX/ASP.NET/PHP and I can do the work as per the specifications provided by you. You are most welcome to discuss the project details with me.
$250 USD dalam 10 hari
5,0 (3 ulasan)
2,3
2,3
Avatar Pengguna
A proposal has not yet been provided
$150 USD dalam 7 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
A proposal has not yet been provided
$155 USD dalam 4 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Hi there, I’m Maggy and your javascript tracking project sounds perfect for me! I know that my bid is low, but I know that you are taking a change by accepting a bid from someone with no reviews. I recently graduated from a developer bootcamp, and am looking to start my freelancing career! I’ve completed similar projects in the past - I have experience with tracking cookies and vanilla Javascript, and have completed several dynamic web projects. I actually prefer Javascript to JQuery, so this project sounds like fun! I have reviewed your implementation plan and I agree with your general strategy, though I would likely modify it a bit to make future changes easier. If you would like more details on my plan or have additional questions, please let me know! Looking forward to working with you, Maggy
$83 USD dalam 6 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
Austin, United States
5,0
4
Memverifikasi Metode pembayaran
Anggota sejak Jul 10, 2014

Verifikasi Klien

Pekerjaan lain dari klien ini

Find Information from Websites
$100-400 USD
Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.