Tracking Submit form button click with Google Tag Manager - events

I am trying to track a specific submit button click on a form I have on my website using tag manager. I have already:
Set up a form submit listener tag with a rule set to fire on every page.
Set up an analytics event tag, with a rule set to fire when the event equals gtm.formSubmit, AND when the element ID equals submit1 (the ID of the submit button).
However, it doesn't seem to be showing any events tracked in Analytics when I test this out.
Have I implemented this incorrectly?
Thanks.

Have you tested first in Debug mode of Tag Manager? That is the best way to confirm first that the tag fires. Once that works, only then look in Analytics, in Real Time area. If you see it firing in Debug mode but not in Analytics then some filter might be at fault. Once it starts working Publish it in GTM.

There are two important things to notice and remember:-
1) The element ID is the ID of the form and not the submit button.
2) You should also create a new Tag with "Tag Type = Form Submit Listener"
This article should be helpful: http://www.bwired.com.au/blogs/services-domain/getting-started-with-google-tag-manager

Related

Livewire Event Causing Route Change Results in Nav Buttons Not Being Active

So I have this Laravel 9 project. In this view below you can see the navigation bar:
The menu above for the active link (Overview) styling (Tailwind) is active via the check below in the view for the component looking at the request information:
#if(request()->is('dashboard/*/overview'))
This works great as the url currently is
localhost/dashboard/{ID}/overview
When clicking the bottom nav link for the Dividends this fires a livewire event for this account as they don't have permissions to access the page. No navigation away from the page Overview is performed. This event is used to setup a popup when the user doesn't have access to a feature. (I have these in a few places)
The issue is that when one of these fires it sets the 'is' check value in the request to
/livewire/message/{COMPONENT_NAME}
This seems to be the expected behaviour of the livewire events. I attempted a similar check using the code below but the same result occurred as the data is still tied to the request.
#if(request()->pathInfo == "dashboard/7/overview")
If anyone knows of another way or a better way I could have the intended functionality so that the button keeps it's 'active' properties after a livewire event has ran, I'd appreciate it :)

what is the best way of making a filter pre every page in vaadin

hi i wanna have a filter pre every web pages that check someting and if that thing was incorrect show me an error page
and if it was fine just show me the page
Vaadin is mostly based on individual interactions such as clicking buttons or scrolling in a grid, rather than viewing pages. What you can still do is to use UI::addBeforeEnterListener to get an event before navigating to a new target. You can use a VaadinServiceInitListener to register that listener for all your UI instances.
For more information, have a look at this blog post that I've written on the topic.

How do I stop my application express after submit process firing on page refresh?

I have an oracle application express process, written in PL/SQL and it fires off a confirmation email, supposedly when you click on the related button, (It is an after submit attached to the button) however, it is firing every time you refresh the page. Is there a different way of doing this so it only fires when you click the save changes button?
Take note of the execution point attribute. It will won't apply to page refreshes if it's either 'Processing' or 'After Submit'.
You can also associate these after-submit processes with specific buttons, using the 'when button pressed' property.
You may also wish to consider the 'Enable duplicate page submissions' page property.
If you're still having issues, you can build a demo at apex.oracle.com, and updated your question.

How to add a history item from a Redmine plugin (via button/link)

Maybe my request is simple, maybe not. I'm fairly new to ruby and everything and face the problem that I need to add a history item from a plugin. I refer to the ticket system Redmine.
Is there a simple way to trigger an event which adds a predefined comment (like "News sent on [date]")? Preferrably the event should be triggered by pressing a button or clicking a link in the redmine web frontend. Like an additional button/link next to the default ones "edit, watch,...).
Can anyone help me here?
The easiest way would be to add a link, with a href to call a javascript function:
Add news entry
The function should add the text you want in the "issue_notes" text field, and send a submit to the "issue-form" form:
function addNewsEntry() {
$('#issue-notes').value = "News sent on [date]";
$('#issue-form').submit();
}
A good example of this is the status_button redmine plugin, this might be a good reference for you as:
it does add some links to the issue page (you also want to add a link to add a new note)
it does change the status on the issue form and submit it (you also want to change a form field and submit it)

Lotus Web Form Scroll and Popup issue

I am trying to create a web form in Lotus Notes that is web enabled. So far this has all worked fine, however there are 2 issues.
When Creating a Java Script Alert in the OnLoad Event, it Pops up everytime a user selects a radio button or dropdown option since this reloads the page. Is there any way to make this only for the initial opening of the form?
When a user selects an option, the form reloads and puts that form field on the top which is proving to be very disorrienting for users. Is there a way to have it not scroll on reload?
Thanks in advance!
The best advice would be: use XPages for web development that is "state of the art". If you can't, you have to code a lot of JavaScript to make the form not behave like "havoc".
First of all: the field property "refresh fields on keyword change" is the reason for the jumping / reload.
What does domino do?
All events / formulas that occur when you normally press F9 or use the Option above (that can be field values, input translations, hide whens, etc.) are not "converted" to HTML and javascript but are executed by the server. Therefor each change in a field with the option set submits the form and adds an &Seq=x to the url to keep track of the state. X increments on every reload. Of course this reload causes all events to be triggered again.
For you this means:
Option
disable the option to reload the form after keyword change.
Unfortunately you have to recode every dependency / calculation / hide when with javascript. Using a framework like jquery or dojo this is possible, but a lot of work.
If there IS no dependency then just disable the option...
Option
Live with the "jumping" and let your onload event check for the existance of an URL- parameter called seq... And only if it does not exist, then it is a "real" OnLoad...
Both options are not quite nice and not very easy to code...
That's one reason why IBM started XPages... There all this stuff is already handled by default...

Resources