ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 5th, 2003, 10:14 PM
sdoscher sdoscher is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 sdoscher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post tracking a url in cold fusion

Question...Please help if you can.

I have 5 emails that all link to a nearly indentical "offer page." The only difference is that on the offer page is a "proceed to checkout" image which somehow picks up the url parameters from the email and that ID is brought to the shopping cart and can be tracked to the sale.

I think I can get the parameters from the email url, but how do I get it "into" the link property of the "proceed to checkout" image on the offer page. Example: if a person comes from email #1 the link under the "proceed to checkout" image is URL and if another person comes from email #2 the link under the "proceed to checkout" image is URL

It seems as though the link under the "proceed to checkout" image has to change DYNAMICALLY, depending on what email they come from. How do I change to link dynamically?

If I am not explaining myself properly, I will send the actual emails and the corresponding offer pages that are identical, with the exception of the link underneath the proceed to checkout image which corespondes to the different emails.

Any help you could offer would be truely appreciated. Maybe I am going about this wrong. Thank.

Scott

Reply With Quote
  #2  
Old August 6th, 2003, 01:23 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
Re: tracking a url in cold fusion

Quote:
Originally posted by sdoscher
Example: if a person comes from email #1 the link under the "proceed to checkout" image is http://www.xyz.com/abc.cfm?aID=1234 and if another person comes from email #2 the link under the "proceed to checkout" image is http://www.xyz.com/abc.cfm?aID=5678


Maybe I'm missing something, but this seems to be very easy. In your email, have the link be dynamic, something like this:

http://mysite.com/page.cfm?aID=1234

Then on the page that's showing the proceed to checkout link you do:

a href="mysite.com/checkout/page.cfm?aID=#url.aID#

Any variables passed via the url are available to CF via the URL scope. Same goes for form fields which are available via the FORM scope.

Hope that helps,

Brian

Reply With Quote
  #3  
Old August 6th, 2003, 02:39 PM
sdoscher sdoscher is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 sdoscher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Brian,

It does seem easy doesn't it and it probably is. I must be missing something obvious. The way you suggested doesn't work because when the aID is sent to the offer page, the status bar shows (when hovering over the image) URL &aID=#url.aID". In other words it doesn’t seem to be able resolve the url.aID parameter. When you click the image it throws and error on the site. However, if you hardwire in the aID….perfect.

I am sure it something simple, like a variable declaration problem or synax. Again, I am very close so any help you could offer would be so appreciated. Thanks.

Scott

Reply With Quote
  #4  
Old August 6th, 2003, 04:43 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
When outputting variables in CF the variable must be within a set of <cfoutput></cfoutput> tags. You can wrap the whole page in cfoutput, or only that variable, but it must be within cfoutput tags. Also, you can't nest cfoutput tags so watch out for that. The only time you'd nest cfoutput tags is when you use the "group" attribute which is a specific situation (and this isn't one of those).

Reply With Quote
  #5  
Old August 7th, 2003, 08:02 AM
sdoscher sdoscher is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 sdoscher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IT worked! Thank you ALL SO MUCH for your help. It is really nice to have a place to go for real practical help in time of need. Thanks for the giving of your time and expertise. It truely is appreciated.

Scott

Reply With Quote
  #6  
Old August 7th, 2003, 09:02 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
You're welcome. I recommend giving Fusebox a try if you are going to do more CF work. It is a great framework for building CF (and PHP) applications. www.fusebox.org.

Regards,

Brian

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > tracking a url in cold fusion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway