I can track the source of a lead doing go.example.com/?src='ThisSite' . What I don't know is how to track a form2 that was embedded and I don't find any information. Does anybody know how to do that? thanks!
To accomplish this, you will need to create a hidden field in your form that is auto-populated with the value of the referring page. Here's how to do this in Marketo:
Log in to Marketo
Under Marketing Activities, select your form and click Edit Form
Create a new field
Change the field type for the field you created to hidden
Select the option for Autofill
After the clicking option for Autofill, set Get Value From to Referrer Parameter.
Enter the Parameter Name which you want to get from the referrer URL and click SAVE.
Click Finish
Click Approve and Close
Related
I believe I should be able to set a trigger within Google Tag Manager, for when a confirmation message appears on a page.
This is because when someone submits the form, it doesn't go to a thank you page. The page URL remains the same, but a thank you message appears.
My understanding is that I can just wrap that message with an element ID, and then use this as a trigger in GTM.
If anyone can confirm this, or has any experience as to the best way to do this, that would be much appreciated!
Yes you can do this. First you have to enable "Form ID" which is GTM's Built-In Variable:
Go to Varaibles
Under "Built-In Variables" click "CONFIGURE"
Scroll to "Forms" section and enable Form ID
Now you can setup trigger on form submission:
Go to Triggers
Click on "New"
Click on "Trigger Configuration"
Under "Other" select "Form Submission"
Now you can select "Some Forms" and set the Trigger as: "Form ID - equals - your ID"
Given that I want to track successful sign-ups
When I set up in Google Tag Manager:
Trigger type: Click - All Elements
Trigger fires on: click classes contain "ht-app__form-submit"
Then my trigger fires any time someone hits the "Sign button" on this page
https://www.myhometouch.com/app/register
OK.
However, I only want to track the clicks where the sign-up was successful, so I want to "check validation" but this creates two questions for me:
1. With trigger type "All Elements" you cannot enter a validation, but if I select the other option "Click - Just Links", then my Google Tag Manager debugger shows that my Tags are not firing anymore. So which event type do I need to set up in GTM?
2. After I find the right event, what would be the correct "check validation" to enter to make sure only successful sign-ups are counted? Would it be Click URL with some value? Any insight in this would be much appreciated.
many thanks
screenshot
I would push an event to dataLayer after the successfully validation (supposing you have access to the project code files where the validation is made)
dataLayer = window.dataLayer || [];
dataLayer.push({
'event' : 'signupEvent',
});
And then I'd use that event to create a custom trigger to fire the desired Tag
HTML forms and links (references) are two diffent type of things. Your form is not a link, so this is not the right path.
You also don't need the explicit click tracking but the form submission tracking. Select the trigger "form submit". Then check the box "check validation". In the next drop down you can select the variable "Click Classes". This one should contain the value of your form class.
You can declare a variable in Google Tag Manager that checks if the Login Form input texts are filled (not empty) and then, pass this variable to the trigger and set it to fire only if fileds are not empty.
Please find an example in these screenshots:
GTM variable
GTM trigger
Hope this was helpful !
My program currently sends out an email when a new "Contact" has been added to my application. This email includes a link that has the ContactID and will link to a page (Contacts.aspx). This Contacts.aspx has a Gridview with various contact records inside of it. Whenever a specific record is selected, it provides more information on that contact through a subroutine called LoadContact(int ContactID). It provides more information by showing a panel with various asp.net controls such as labels and checkboxes. My question is this:
Is it possible to set it up so that when the user clicks the link in the email, it takes them directly to the Contacts.aspx page and loads more information on that specific contact automatically rather than them having to click a specific record with that contactid?
you can add a parameter to the link
Contacts.aspx?myparameter=foo
and then in your Codebehind-File access this in the Page Load Event
Request.QueryString("myparameter")
With that information you can select specific Data in your Gridview
I have 2 commandLink in my page. A user has to fill in the details in the input text box (I have used h:inputText for this and all fields are mandatory), and click on "Submit". If a user dont wish to fill in any of these fields there is a link provided below Submit for "Skipping this activitiy" . This skip link will redirect to some other page. Both Submit link and Skip link are h:commandLink. I cant use h:outputLink for Skip because when user clicks on Skip I want to call bean and do some business checks.
Now, when a user doesn't fill in any of the details in the fields, but instead clicks on Skip link, the required=true attribute of h:inputText is getting fired. I want this to get fired only when user clicks on Submit without filling in any details and not when he clicks on Skip link.
How to achieve this?
Add immediate="true" to the commandLink.
It will make sure that all the input fields where immediate="true" hasn't been defined will be skipped in processing and no validation error will trigger.
I want to make a link on a page that when clicked, would open another page(tab). I have already done that.
Now, when the user clicks a link in the second page, I want the page to close, and a field in the first page to be updated with what the user selected in the second page.
As an example, I would like to achieve the same functionality as the Yahoo Mail address book. When you write a message, you click the "To:" field, the address book opens in a new window, you select the people you want to send the mail to, and then when you click "Done", those people's addresses are automatically added to the "To:" field in the first page.
Please give me some suggestions on how to achieve such a feature.
Thanks in advance
You'll need to use JavaScript to open and close the window. When the second window closes, handle the event and then you can use window.parent.document to find and access fields on the parent window.