Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8309483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:07:55+00:00 2026-06-08T19:07:55+00:00

I have form, let’s say it’s on index.php. On submit, it goes through process.php,

  • 0

I have form, let’s say it’s on index.php. On submit, it goes through process.php, then finishes on thanks.php. I want to trigger an Analytics Event so I can track my form (no I don’t want to use a URL Destination). If I put the Event code on thanks.php, I’m concerned that if people refresh the page, it will re-trigger and give me bad results. So, I want it to trigger from process.php somehow. At the end of process.php, I set the header like this:

header('Location: /thanks.php');  

This is the code for triggering the Event:

_gaq.push(['_trackEvent', 'ClaimDomain', 'ConfirmationPage']);

Is there some way of sending the JavaScript call along with the header, so that it only gets processed as we leave process.php, and not when we refresh thanks.php?

Thanks for your help 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:07:56+00:00Added an answer on June 8, 2026 at 7:07 pm

    Not really, PHP is server-side, Javascript is client-side.

    From reading about this though, it sounds like it may be a non-issue:

    Unique events are incremented by unique actions

    Any time a user interacts with an object tagged with a particular
    action name, the initial interaction is logged as one unique event for
    that action name. Any additional interaction with the same action
    trigger for that user’s session will not contribute to the unique
    event calculation for that particular action. This is true even if the
    user leaves that object and begins to interact with another object
    tagged via the same action name.

    Source: Event Tracker Guide – Actions.

    So GA will know if they happen to land on the page twice and it will not count as 2 unique events.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say you have a custom form MyForm : Form and want to run
Let's say I have this form: <form action=submit method=post> <select name=category id=categorylist> <option value=love>Love</option>
Let's say I have a form field for Name. I want to display an
Let say that I have the form below: <form action=sendMessage.php method=post> <label>Subject</label><input type=text></input> <label>Message</label><input
let's say i have a form and his child and i want the child
Let's say i have a form <form action=delete_post.php method=post>...</form> on my website: http://mysite.com and
Let's say I have a form from a remote area http://example.com/form.php which contains: <form
Let's say I have this form : <form action=Change-status.php method=post> <select class=changeStatus name=changeStatus> <option
Let's say I have a form that collects a first name and a last
Let's say I have a form where users can search for people whose name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.