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 9201859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:07:11+00:00 2026-06-17T23:07:11+00:00

I am trying to create a sandbox where I can check if a tracking

  • 0

I am trying to create a sandbox where I can check if a tracking pixel has successfully executed or not.

Essentially, a successful pixel fire creates a request for an external JavaScript file. When this script runs correctly it creates this:

<script async="true" type="text/javascript" src="a.adroll.com/j/roundtrip.js"></script>

How do I go about detecting that? Any advice?

  • 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-17T23:07:13+00:00Added an answer on June 17, 2026 at 11:07 pm

    If you’re trying to detect whether a tracking pixel has been added to your page and successfully loaded, you can find it in the DOM and check if the image has completed loading with the .complete property.

    If you’re trying to detect whether some external javascript has been called, you can’t do that directly unless the code leaves some state around that you can interrogate indicating it’s been called or perhaps hacking the code in question before it’s called to replace it with your own function that can log it being called and then call the original function.

    Without more details about your problem (the actual code and HTML), we can’t offer more specifics.


    I see you added a little more info in a comment. If you want to know if a specific script has been loaded, then you can look at that script and see what global symbols it defines and test for the existence of one of those global symbols. If they are not defined, then the script has not been loaded yet. If they are defined, then it has.

    For example, if the script (roundtrip.js) defines a global function named __adroll (which it looks like that script does), you can test for its existence with:

    if (window.__adroll) {
        // symbol __adroll is defined
    }
    

    To test for the existence of this variable in an iframe on the same domain as your host page, you would have to get the window object for that iframe. Using id="iframe" from your code example, you could do that like this:

    var iframe = document.getElementById("iframe_");
    var iframWin = iframe.contentWindow || iframe.contentDocument;
    if (iframeWin && iframeWin.__adroll) {
        // symbol __adroll is defined in the iframe
    } else {
        // symbol __adroll is either not defined in the iframe or
        // the iframe window is not accessible for cross-domain security reasons
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use How can I create a secure Lua sandbox? to
I'm trying to create a Sandbox App Domain that has read only access to
I setup a Paypal Sandbox account and am trying to create simple purchases through
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
Trying to create a macro which can be used for print debug messages when
I'm trying to figure out how to create a sandbox area in my new
I am trying to figure out a way where I can create a tab-delimited
I am trying to create a new email using the cocoa scripting bridge,but can
I'm trying to create a styled button that has a single character centred inside

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.