giganut 109 Posted May 30, 2018 Report Share Posted May 30, 2018 Hey everyone, it's been awhile scene I have been active, So I though I would come back and share something great. Ive seen through the forum that some people are wondering how "In App Tracking works" and how to do this with ubot. So I put together a few cool commands using some tools that most everyone here should already have and can install for free. To use this tutorial you will need aymens HTTP plugin, Matomo analytics (formally piwik) and a hosting account that has a Softaculous installer. If you don't have a hosting account that hosts Softaculous you can download and install Matomo analytics manually. I'm not going to be going over how to do every step, just simply tell you what you need to do to get it going.Tracking HTTP API Reference: https://developer.matomo.org/api-reference/tracking-api1.) Setup a subdomain on your hosting, any will do i called mine http://app.tracking.mydomain.com2.) Use Softaculous to install Matomo analytics into the subdomain folder /appstats/3.) make a page called index.php and place it in the subdomain root folder4.) login to Matomo analytics and get your tracking code and place it in the index.php5.) go into Matomo analytics settings and install GeoIP lite database from MaxMind6.) open the website stats section of Matomo analytics where your domain data resides.7.) locate the Goals section and create 15 goals with the exact data provided below8.) Take note of the ID number of each Goal created. Id's are created automatically9.) Create your goals with these settings selected "Goal is triggered = manually" Allow goal to be converted more than once per visit10.) Find your Matomo analytics API, the file is called "piwik.php"11.) append this file to your new tracking URL, should look like this nowhttp://app.tracking.mydomain.com/appstats/piwik.php12.) take this full url and replace the identical url within each command in the provided code.13.) go through the code and make sure that the "idgoal=" is matching the goal id number from the goals you created. This is important make sure that the corresponding code functions match up to the goal descriptions.ID Goal Name Goal Description1 App Opened In App Tracking - App Opens2 App Started In App Tracking - App Starts3 App Stopped In App Tracking - App Stops4 App File Loaded In App Tracking - App File Loaded5 App File Failed In App Tracking - Load File Failed6 App TextBox Value In App Tracking - TextBox Set Value7 App Button Push In App Tracking - Button Push8 App Check Box In App Tracking - App Check Box Ticked9 App UI Window In App Tracking - UI Window Opened10 App Dropdown In App Tracking - App Dropdown Value11 App List Box In App Tracking - App List Box Value12 App Block Text In App Tracking - App Block Text Value13 App Stat Monitor In App Tracking - App Stat Monitor Value14 App List Total In App Tracking - App List Total Value15 App Table Values In App Tracking - Rows And Columns NOTE: To change the name of each action as it appears in the analytic dashboard you can change the API endpoint called "&action_name=" value to what ever you would like the action name to be. Please make sure to replace all URLS in the code to your Matomo analytics tracking url Everything shown here is a getting started guide and commands, you can take this many steps further if needed. If anyone needs any help getting this setup please don't hesitate to post in the thread and ask for help. Please no PM about this as I would like to keep all info organized in one thread and not privately. Hope you enjoy gaining incite into your users activity's within your software. Best of luck. App Opened In App Tracking - App Opens define ApplicationOpened(#RunApplicationOpened) { comment("Place in onload command to trigger a goal in your statistics dashboard. ( App Opened )") set(#anti_cache,$rand(123,1234),"Global") set(#ApplicationOpened,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=1", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#ApplicationOpened,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=HTTP Api App Traking - Reversion Build 1.01&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "", "", 20),"Global") } on load("Tab Loaded") { set(#session_id,$change text casing($random text(16),"Lower Case"),"Global") ApplicationOpened(#RunApplicationOpened) }App Started In App Tracking - App Starts & App Stopped In App Tracking - App Stops ui button("Start Application") { thread { AppStarted(#RunAppStarted) } } ui button("Stop Application") { thread { AppStop(#RunAppStopped) } } define AppStarted(#RunAppStarted) { comment("Place in Start button to trigger a goal in your statistics dashboard. ( App Started )") set(#anti_cache,$rand(123,1234),"Global") set(#AppStartClick,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=2", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#AppStartClick,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=HTTP Api App Traking - Reversion Build 1.01&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "", "", 20),"Global") } define AppStop(#RunAppStopped) { comment("Place in Stop button to trigger a goal in your statistics dashboard. ( App Stopped )") set(#anti_cache,$rand(123,1234),"Global") set(#AppStopClick,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=3", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#AppStopClick,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=HTTP Api App Traking - Reversion Build 1.01&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "", "", 20),"Global") }App File Loaded In App Tracking - App File Loaded & App File Failed In App Tracking - Load File Failed ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App TextBox Value In App Tracking - TextBox Set Value ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App Button Push In App Tracking - Button Push ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App Check Box In App Tracking - App Check Box Ticked ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App UI Window In App Tracking - UI Window Opened ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App Dropdown In App Tracking - App Dropdown Value ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App List Box In App Tracking - App List Box Value ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App Block Text In App Tracking - App Block Text Value ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App Stat Monitor In App Tracking - App Stat Monitor Value ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App List Total In App Tracking - App List Total Value ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }App Table Values In App Tracking - Rows And Columns ui open file("Load File",#LoadedFile) thread { if($comparison(#LoadedFile,"!= Does not equal",$nothing)) { then { FileLoaded(#RunFileLoaded) } else if($comparison(#LoadedFile,"= Equals",$nothing)) { FileLoadFail(#RunFileLoadFail) } } } define FileLoaded(#RunFileLoaded) { comment("Place after load file ( App File Loaded )") set(#anti_cache,$rand(123,1234),"Global") set(#AppLoadedFile,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=4", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") set(#file_name,$find regular expression(#LoadedFile,"[A-Za-z.0-9_-]+\\.[a-z]+"),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&action_name=File Name = {#file_name}&url=http://app.tracking.org", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") } define FileLoadFail(#RunFileLoadFail) { comment("Place after load file ( App Failed To Load File )") set(#anti_cache,$rand(123,1234),"Global") set(#LoadFileFail,$plugin function("HTTP post.dll", "$http get", "http://app.tracking.mydomain.com/appstats/piwik.php?&idsite=1&rec=1&_id={#session_id}&rand={#anti_cache}&apiv=1&idgoal=5", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0", "http://app.tracking.mydomain.org", "", 20),"Global") }Source Code: http://www.mediafire.com/file/ev53nyt2tmccogw/HTTP%20Api%20App%20Traking%20-%20Reversion%20Build%201.02.ubot 5 Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 30, 2018 Report Share Posted May 30, 2018 Great post bud, and nice work. 1 Quote Link to post Share on other sites
giganut 109 Posted June 1, 2018 Author Report Share Posted June 1, 2018 Thanks TJ, glad you like it. This is really great for catching errors before your clients even have a change to report them. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.