How do I pass a form value to Google Analytics
I would like to pass a form value to Google Analytics. ie. if the user enters a value and submits the form, on the confirmation page I'd like to read the value and other form fields and pass those populate the Google Analytics tracking code ie. populate this withthe form values:
_gaq.push(['_addItem',
'1234', // order ID - necessary to associate item with transaction
'DD44', // SKU/code - required
'T-Shirt', // product name - necessary to associate revenue with product
'Olive Medium', // category or variation
'11.99', // unit price - required
'1' // quantity - required
How about this - bind an ajax call to google analytics to the form submit button (change the type from submit to button or suppress the default event), having the form itself only submit after the ajax call is successful? No need to even worry about the confirmation page then.
Similar Messages
-
How can i pass the Input value to the sql file in the korn shell ??
Hi,
How can i pass the Input value to the sql file in the korn shell ??
I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
can any one help me out.
RajaCan you please more elaberate., perhaps you should more elaberate.
sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense. -
HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE
HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE.
DATA : BEGIN OF ITAB OCCURS 0,
FIELD1(2) TYPC C DEFAULT '12',
FIELD2 TYPE C ,
END OF ITAB1.
IT'S GIVING ERROR MESSAGE.
PLZ LOOK INTO THIS AND GIVE ME CORRECT SOLUTION.
THANKS
SURIDATA : BEGIN OF ITAB OCCURS 0,
FIELD1(2) TYPC C,
FIELD2 TYPE C ,
END OF ITAB1.
itab-field1 = '12'.
itab-field2 = 'A'.
append itab.
clear itab-field2.
itab-field1 = '12'.
itab-field2 = 'B'.
append itab.
clear itab-field2.
Now everytime u'll have the value for field1 = '12'.
Regards
Vasu -
How can i pass function return values in to varray
Hi
create procedure name(parameters list)
here ---i am calling a function
varname := function name
returns 4 values
My doudt is how can i pass these return values in to varray..
Type varray vname[5] date type
Begin
statements
end prodedure name;
pls clarify me its urgentThis may give u a start
sql>
create or replace package test_array_pack as
type ar1 is varray(10) of number;
end;
Package created.
sql>
create or replace function test_array return test_array_pack.ar1 is
v_ar1 test_array_pack.ar1;
begin
v_ar1 := test_array_pack.ar1(1,2,3,4);
return v_ar1;
end;
Function created.
sql>
declare
v_ar2 test_array_pack.ar1;
begin
v_ar2 := test_array;
end;
PL/SQL procedure successfully completed
Message was edited by:
jeneesh -
Firefox connects to google-analytics for some sites,when i click on links in websites or emails and then gets stuck, and I can never get onto the site. Or opens a new bower behind the one i'm usind that's blank i don't even know it's there untill i close the one i'm using. How do I prevent Firefox from connecting to google-analytics? Or opening a blank bowser behind the one i'm using. I use XP with service pak 3 in English
== This happened ==
A few times a week
== a couple months agoI got the same issue.
I go on a website and all the sudden another window pops up with "results.google-analytics.com" or "search.google-analytics.com". It has often ads for other sites for example. black single dating site
how can I can I stop that from happening again?
I didn't download or do anything, just visit websites, that I visit on a regular basis.
OS: Windows XP
Firefox Version: 3.6.6 -
How to pass a form value as a url parameter??
I have following form and I want to pass the selected value of the drop down choice in as one of the parameter in the URL. How can I do that ??
something like proposalid that I have done in the url, I want to pass the selected value of the variable doc_id, when I click the Link button
<form name = "link" method="POST" enctype="multipart/form-data" action="<%= request.getScheme() %>://<%= request.getServerName() %>/webAppCore/common/add_doc.jsp">
<table>
<tr> <td class="tableContent"> Doc Identifier: </td>
<td class="tableContent"> <SELECT name="doc_id">
<%
Vector v = iddata.getDocumentIdList(tabName);
//out.println(v);
if (v != null && v.size() > 0) {
for (int i = 0; i < v.size(); i++) {
Hashtable hash = (Hashtable) v.elementAt(i);
%>
<OPTION selected name="id " value="<%=(String)hash.get("DOCUMENT_ID")%>"> <%=(String)hash.get("DOCUMENT_NAME")%></OPTION>
<% } } else {%>
<OPTION selected name="id " value="test"> No DocIDs</OPTION>
<%}%>
<tr> <td colspan = "2">
<table border="1" width="200">
<tr> <td> <input type="text" name="link_file" size="30" value=""/></td><td> <INPUT TYPE=button VALUE="Link..." onClick="window.open('<%= request.getScheme() %>://<%= request.getServerName() %>/webAppCore/common/link.jsp?proposalid=<%=proposalID>','mywindow','toolbar=no,location=no,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=20,top=20');"></td> </tr>
<tr> <td colspan = "2">
To Create Links: <br>
* Select Doc Identifier
* Click on Link...to select file within eFile. <br>
* Click Add to create the Link <br>
</td> </tr>
</table>
</tr>if - in your form declaration - you change your method to GET from POST, it will append the form data onto the URL string instead of putting it in the request header. For instance, if you have a form with an input called THE_INPUT, and you submit to a servlet (or script of some kind or whatever) when the value of that text box is "foo", the URL will be:
http://www.yourdomain.com/yourservlet?THE_INPUT=foo
But, if you use the POST method, the URL will just be:
http://www.yourdomain.com/yourservlet
Is that what you meant? -
Cf10 how do I pass the selected value in cfselect to another .cfm page
I am new with CF. I am using CF 10 on WIN XP. I am pulling a distinct list of data and want the user to select one to open a new page (detail.cfm) and pass that value to the next page to be used for other queries.
can it be done?
Here is my code for cfselect .
What am I missing
<cfform name = "Form" action="detail.cfm"
<cfselect name="trip"
query="gettri"
value="district_name"
required="yes"
multiple="yes"
size="1">
</cfselect>
<br> <input type="Submit" value="Submit">
</cfform>
Thank you for your time
RobI missed it when I typed it in my original question
The > bracket is in my code.
I justed checked.
It should read ~ "detail.cfm">
The list works when I excute the page.
How do I pass the value after I have selected it on the page?
Thank you -
How can i pass the one value for two bind parameters
hi All,
i have a search Query
select Distinct CONSOLIDATION_SUMMARY_ID,CREATION_DATE,CREATED_BY,BATCH_ID,PROCESS_FLAG,ERROR_MESSAGE,CUSTOMER_ID,BILLING_FREQUENCY
,CONSOLIDATION_LEVEL,SOLD_TO_ORG_ID ,SHIP_TO_ORG_ID ,TRANSACTIONAL_CURR_CODE ,INVOICE_TO_ORG_ID ,PRICE_LIST_ID
,ORIG_SYS_DOCUMENT_REF,INVENTORY_ITEM_ID ,ORGANIZATION_ID ,ORDERED_ITEM ,ORDERED_QUANTITY ,UNIT_LIST_PRICE
,UNIT_SEELING_PRICE,ORDER_QUANTITY_UOM,ORDER_NUMBER ,ORDER_DATE ,INVOICE_NUMBER ,INVOICE_DATE
,FEE_CALCULATION_WORKSHEET_PDF ,TRADE_DETAILS_PDF ,INVOICE_REPORT_PDF ,PRICING_ATTRIBUTE_CONTEXT
,PRICING_ATTRIBUTE ,PRICING_ATTR_VALUE_FROM
from xxcurrnx.xxcur_trade_consol_summary XXSTR
WHERE XXSTR.BATCH_ID=NVL(:1,XXSTR.BATCH_ID)
and XXSTR.CUSTOMER_ID=nvl(:2,XXSTR.CUSTOMER_ID)
But i need to pass only one value to this query: throw the below code
public void passTocusttrxn(String vcustid)
System.out.println("The customer id in trxn vo:"+vcustid);
XxcurtradeconsummaryVOImpl vOrdnumb=getXxcurtradeconsummaryVO1();
vOrdnumb.setWhereClauseParam(0,vcustid);
vOrdnumb.setWhereClauseParam(1,null);
vOrdnumb.executeQuery();
System.out.println("The executed query After is :"+vOrdnumb.getQuery());
But it throws the below exception.
java.sql.SQLException: Missing IN or OUT parameter at index:: 1
could you please tell me how can i achieve this.
Thanks,hi Meher,
i need to pass this value throug the Spell Parameter.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
XxcustdtlsmainAMImpl am=(XxcustdtlsmainAMImpl)pageContext.getApplicationModule(webBean);
if(pageContext.getParameter("PCustID")!=null) // PCustID is the Spell parameter here
if(pageContext.getParameter("PbtchID")!=null)
if(pageContext.getParameter("PordNum")!=null)
String vcustID=pageContext.getParameter("PCustID");
String vOrdNum=pageContext.getParameter("PordNum");
System.out.println("The cust id in PR:"+vcustID);
System.out.println("The cust id in PR:"+vOrdNum);
am.passTocustlinetrxn(vcustID);
how this vcustID value will passed to the search Code.
if(pageContext.getParameter("BatchID")!=null && !pageContext.getParameter("BatchID").equals(""))
String BchID=pageContext.getParameter("BatchID");
int vInBtchID=Integer.parseInt(BchID);
srchVO.setWhereClauseParams(null);
srchVO.setWhereClauseParam(0,vInBtchID);
System.out.println("The Batch ID is :"+vInBtchID);
f=1;
}else
srchVO.setWhereClauseParam(0,null);
if(pageContext.getParameter("CustmeCode")!=null && !pageContext.getParameter("CustmeCode").equals(""))
System.out.println("i am im customer code ");
String vCustID=pageContext.getParameter("CustmeCode");
srchVO.setWhereClauseParams(null);
srchVO.setWhereClauseParam(1,vCustID);
System.out.println("The customer code is "+vCustID);
f=1;
}else
srchVO.setWhereClauseParam(1,null);
if(f==1)
srchVO.executeQuery();
Regards, -
How do I pass a null value to the reportDocument?
I'm using CR 2008 and VS 2005.
I am using a stored procedure as the datasource for one of my report, which we run using the C# API. The stored procedure is expecting a NULL in certain cases and I find I cannot pass a NULL with my current code:
// Here I get the parameter
// If we are dealing with an empty string or a NULL value, let's give it
// a value of a space so that Crystal's DLLs don't choke.
if ((value.Length == 0) || (value == "NULL"))
value = " ";
arrParams.Add(value);
Object strParam = arrParams<i>;
this.reportDocument1.SetParameterValue(num, strParam);
The stored procedure parameter type is INT so in the report it shows up as NUMBER.
How do I get a NULL value to the stored procedure?
Thanks.See if this does the trick:
Dim crParameterDiscreteValue As New CrystalDecisions.Shared.ParameterDiscreteValue()
crParameterDiscreteValue.Value = Nothing
C# would look something like;
CrystalDecisions.Shared.ParameterDiscreteValue crParameterDiscreteValue;
crParameterDiscreteValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
crParameterDiscreteValue.Value = null;
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
How do I pass a cfparam value to multiple pages at once
Here's the link to my page:
www.carolinagreen.net/victus
Click "Roster" and then "The Infamy" to see my problem.
What I've done is made the roster page populate dynamically
with each artist from a table in the database. The links for each
artist you see on the roster page are all linked to the page
artist.cfm and each passes its unique ID to the artist page for
displaying the info about each artist.
On the artist page, I also have an iFrame that I intend to
use to display the shows. The page it displays is called shows.cfm.
Now, I know the show page works because you can type
www.carolinagreen.net/victus/shows.cfm?ID=1 and it will display the
shows for The Infamy. My problem is getting it to pass the ID value
to the shows.cfm page at the same time that it passes it to the
artist.cfm page.
Both pages currently have this at the top to supply the ID to
the page:
<cfparam name="URL.ID" type="numeric" default="0">
I thought it might actually just pass the ID to both since
the browser opens both pages at once.
Is this even possible? I know I could just screw the iFrame
and make a link to the shows.cfm page that opens in a new window or
something, but I'm trying to work with my clients wishes. If worse
comes to worse, I can just forget the iFrame, display the shows in
the artist.cfm page and make the body of the page grow to fit all
the info in, but that could get messy and stupid looking when the
artist has a 30-show tour booked.
Any ideas anyone?
CameronActually your browser does two independent calls to your
webserver and the scripts do not share the information with each
other.
Just pass the id value to the iframe by adding it to the src
attribute from within your "artist.cfm"-script.
<iframe src="shows.cfm?ID=#url.id#">
That's it. -
How do I pass a field value from one form to another?
Hi,
Please help me.
First application.
I have login form.
One field P48_USERNAME, no password required.
Enter the User name and press Login button.
The Login redirects to page 4.
On Page 4, I need to populate a hidden field called user with the value from P48_USERNAME.
How can I do this?
Apex version - Application Express 4.0.2.00.07
ZacHi Ola,
What do you have to in the taget page the branches alone does not work.
No password is required, no password is entnered, no field available to enter a password.
Any any ideas?
Zac -
How can I pass a var value between MovieClips?
New week, new question.
I haven't been able to find the answer to this: I'm working with a var defined in the main timeline var score:int; , wich I use in 10 different movie clips using var score = MovieClip(this.root).score;
Everything works perfect on the first MovieClip, but when the next one plays score does not keep the value assigned in the previous MovieClip therefore the score is lost.
The clips are questions and they are place on the main time line in different frames and main time line actions layer which only contains this:
stop();
var score:int;
nextQuestion.addEventListener(MouseEvent.CLICK, newQuestion);
function newQuestion(evt:MouseEvent):void {
nextFrame();
covers each frame with every different MovieClip.
What I need to know is how to make that value pass to the next Movie Clip?Hi Ned,
I had defined the score var in the time line but to add the score from each question (MovieClips) I have to call it to the each MovieClip and I assume that whe I call the score var in the second MovieClip will keep the score from the first, but is not the case:
This is the time line actions layer:
stop();
var score:int;
nextQuestion.addEventListener(MouseEvent.CLICK, newQuestion);
function newQuestion(evt:MouseEvent):void {
nextFrame();
and this is the code from the first question (MovieClip)(all the questions will have the same code except for some specific things like the value that each answer adds to the score and stuff like that)
stop();
var score = MovieClip(this.root).score;
var answersArray:Array = new Array();
var strikeCount:int;
var sucessCount:int;
var messageBox:TextField = new TextField();
messageBox.text = "" + score;
addChild(messageBox);
messageBox.textColor = 0xFF0000;
messageBox.width = 200;
messageBox.height =100;
messageBox.x = 285.5;
messageBox.y = -32.9;
this.strikeOne.visible = false;
this.strikeTwo.visible = false;
this.strikeThree.visible = false;
this.flipQ1One.visible = false;
this.flipQ1Two.visible = false;
this.flipQ1Three.visible = false;
this.flipQ1Four.visible = false;
function answListener(evt_obj:Event){
if((strikeCount >=3) || (sucessCount ==4)) { nextFrame();
}else if (answersArray.indexOf(answ_input.text) < 0){
if(answ_input.text == "5"){
score = score + 61;
messageBox.text = ""+ score;
this.flipQ1One.visible = true, flipQ1One.play();
sucessCount = sucessCount +1;
answersArray.push(answ_input.text);
answ_input.text = "";
else if (answ_input.text == "3"){
score = score + 25;
messageBox.text = ""+ score;
this.flipQ1Two.visible = true, flipQ1Two.play();
sucessCount = sucessCount +1;
answersArray.push(answ_input.text);
answ_input.text = "";
else if (answ_input.text == "4"){
score = score + 8;
messageBox.text = ""+ score;
this.flipQ1Three.visible = true, flipQ1Three.play();
sucessCount = sucessCount +1;
answersArray.push(answ_input.text);
answ_input.text = "";
else if (answ_input.text == "2"){
score = score + 3;
messageBox.text = ""+ score;
this.flipQ1Four.visible = true, flipQ1Four.play();
sucessCount = sucessCount +1;
answersArray.push(answ_input.text);
answ_input.text = "";
else {answ_input.text = "";
strikeCount = strikeCount + 1;}
answ_input.addEventListener("enter", answListener);
function strikesListener (evt_obj:Event) {
if ((strikeCount == 1) && (answ_input.text != "5", "4" , "3" , "2")) {this.strikeOne.visible = true;
else if ((strikeCount == 2) && (answ_input.text != "5", "4" , "3" , "2")) {this.strikeTwo.visible = true;
else if ((strikeCount == 3) && (answ_input.text != "5", "4" , "3" , "2")) {this.strikeThree.visible = true;
else {}
answ_input.addEventListener("enter", strikesListener) -
How can I pass Flex Field value to the Call Wrap Up screen?
Hello helpers,
I am trying to get a value from the 'Flex Field' passed over to the 'Call Wrap Up' screen by using Form Personalization.
Oracle was configured by a subcontractor and therefore I do not know what the exact name of the textfield is in the Flex Field however the label is 'Method of Contact'. When i set 'Show Custom Events' to 'On', I get the response: 'CSXXXRC.INCIDENT_TRACKING.STATUS_CODE:WHEN-NEW-ITEM-INSTANCE' When i enter a value in the Method of Contact field in the Flex Field.
Can anyone help?
I am a complete Newbie to Oracle.... I only know a bit about Oracle Form Personalization.
Any help would be much appreciated,
SSeems like you're talking about a from from the eBusiness-suite. There are special rules for that, ask your question in the eBusiness-suite-forum OA Framework
-
Iowagie - How do I pass in parameter values to an event handler -onEndPage?
Hi,
I have spent a while on this and is getting quite frustrating, so any help much appreciated.
I am trying to create a footer on each of my PDF pages that will contain an image and a table. I have successfully created a separate class to my servlet, EndPage.java that contains an onEndPage() method. The problem is, I need to pass in three parameter values into this method, storeNo, langId and transNo.
How do I go about doing this?
PDFPrint.java
public class PDFPrint extends HttpServlet {
private ByteArrayOutputStream getDoc(ByteArrayOutputStream baos, HttpServletRequest requ, String transNo, String storeNo, String langId) {
HttpSession session = requ.getSession();
Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document, baos);
writer.setPageEvent(new EndPage());
document.open();
}EndPage.java
public class EndPage extends PdfPageEventHelper {
public void onEndPage(PdfWriter writer, Document document) {
try {
Rectangle page = document.getPageSize();
PdfPTable head = new PdfPTable(3);
PdfPCell cell1 = new PdfPCell(new Phrase("Pueblo Nativo S.A. de C.V", FontFactory.getFont(FontFactory.HELVETICA, 17f)));
cell1.setHorizontalAlignment(Element.ALIGN_LEFT);
cell1.setBorder(0);
for (int k = 1; k <= 1; ++k)
head.addCell(cell1);
head.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
head.writeSelectedRows(0, -1, document.leftMargin(), page.height() - document.topMargin() + head.getTotalHeight(),
writer.getDirectContent());
PdfPTable foot = new PdfPTable(1);
PdfPCell cell = new PdfPCell(new Phrase("Disclaimer to go here.", FontFactory.getFont(FontFactory.HELVETICA, 17f)));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setBorder(0);
for (int k = 1; k <= 1; ++k)
foot.addCell(cell);
foot.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
writer.getDirectContent());
catch (Exception e) {
throw new ExceptionConverter(e);
public static void main(String[] args) {
}Thanks!Try adding that information data as properties to the HTTP session.
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
HttpSession session = (HttpSession)externalContext.getSession(false);
session.setAttribute("stornNo", storeNo);
session.setAttribute("langId", langId);
session.setAttribure("transNo", transNo);In PDFPrint, you can get those properties using session's getAttribute method, and pass them to the constructor or as parameters to onEndPage. -
How do I pass a form field to javascript?
Hello,
I want to pass a value from my JSF form and popup a window to allow users to pick a value. Then return the value to the field I passed.
This is not working, the field passed is always null;
Thanks
Frank
I call my window popup like this from hyperlink onClick:
Popup("form1:doctorName");return false;
Here is my javascript Window popup:
<script language="JavaScript" type="text/javascript">
function Popup(destination) {
var FieldValue = document.getElementById(destination);
var win=window.open("selectDoctor.jsp?name="+FieldValue, "DoctorLookup", "left=100,top=10,width=480,height=480,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
win.focus();
</script>
Here is the destination JSF page:
public void init() {
javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest) getExternalContext().getRequest();
String name = req.getAttribute("name");
name is always null;Does this help? http://blogs.sun.com/divas/entry/adding_a_popup_window_to
Maybe you are looking for
-
Wireless soulutions please?
-
Hi, I am trying to write a code for Paing using JSP, Ajax, Servlet. I have problem with managing indexes. Here what I have done... I have created a js file which will send an ajax request to servlet. request consists of startIndex, endIndex . Using t
-
Is Retina Display Algorithm Changing the Images at the Same Size?
Hi. If the Retina Display has a denser pixerl per inch count, shouldn't it be making images smaller as you would in an iMac i7 display or any non Retina display for example? Is the Retina display and the iOS themselves are changing the images themsel
-
Optical audio from Apple TV2 to receiver?
I have an HDMI cable running from Apple TV to TV. I have a Toslink cable connected to receiver analog audio in (toslink -> mini-jack adapter). All the sound is currently going through TV. How do I get the sound to play on the receiver?
-
Camera RAW 8.4 Install Failed on CS6
Camera RAW 8.4 for CS6 was available to install today, but when I tried it failed to install and had error code U44M1I210 - this was on a Windows 7 Professional 64 bit computer. Anyone else have this problem. How do I resolve this?