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

  • SEARCH
  • Home
  • 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 8369531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:40:15+00:00 2026-06-09T13:40:15+00:00

There is some custom google analytics events I’ve specified for my application. Trigering these

  • 0

There is some custom google analytics events I’ve specified for my application.
Trigering these events is sometimes not very easy.

For example: User is redirected to home page after purchase and I have to forward some data that this home page is displayed after purchase to push something to _gaq based on that.

Is there any way to trigger google analytics from backend e.g. in a controller without taking care if the action is ajax request or plain request and response has redirect or Ok status?

  • 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-09T13:40:17+00:00Added an answer on June 9, 2026 at 1:40 pm

    Yeah, all data gathered by Google Analytics comes from GIF requests, which is nothing more than a single pixel gif with a very large query string attached. Google processes the servers’ logs and the data goes to your analytics. If you inspect the resources loaded by your page, you will find something like this:

    http://www.google-analytics.com/__utm.gif?utmwv=4&utmn=769876874&utmhn=example.com&utmcs=ISO-8859-1&utmsr=1280x1024&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=9.0%20%20r115&utmcn=1&utmdt=GATC012%20setting%20variables&utmhid=2059107202&utmr=0&utmp=/auto/GATC012.html?utm_source=www.gatc012.org&utm_campaign=campaign+gatc012&utm_term=keywords+gatc012&utm_content=content+gatc012&utm_medium=medium+gatc012&utmac=UA-30138-1&utmcc=__utma%3D97315849.1774621898.1207701397.1207701397.1207701397.1%3B...

    The meaning of each utm value can be found here, but this one is more complete.

    Because of that, it is possible to track things using Google Analytics in server side, if your code handles the query string construction by itself, with the appropriate parameters, and then fires to that gif-url.

    There is a very good project to do that in PHP: Server-Side Google Analytics PHP Client. I think you can implement it in your php ajax file to handle those tricky custom variables.

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

Sidebar

Related Questions

For some reason my custom variables are not showing up in my Google Analytics
Is there some trick to getting a SpringMVC custom view to cause a file
Is there some way to create a custom (WoW64) shared registry key? By default
Is there any way to show my custom Google map (My maps feature in
I'm working on a project here that will store some info in Google Analytics
I'm using Google's Custom Search API to dynamically provide web search results. I very
I have some good experience with Google Analytics and have been using it for
I want to know if i can create a custom google maps application,on which
On my website I have four custom variables. My issue is that Google Analytics
Building a search with some custom objects and three scopes: All , Active ,

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.