Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get tracker to work on website #894

Open
iYoungblood opened this issue Aug 16, 2023 · 2 comments
Open

Cannot get tracker to work on website #894

iYoungblood opened this issue Aug 16, 2023 · 2 comments
Labels
question More of a question than an issue.

Comments

@iYoungblood
Copy link

I have done all of the troubleshooting and cannot find anything that is jumping out except #4 and #5 in troubleshooting.

One issue is that I do not see log.php being called on my site. Not sure how to troubleshoot this..? Everything else seems to be working fine.

One note: My domain that I am tracking is different than where OWA is running.

My code:

//<![CDATA[
var owa_baseUrl = 'https://owa.cloudautomation.blog/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setDebug', true]);
owa_cmds.push(['setSiteId', 'd0f29ca3a4b71cfcb37e86615fae402f']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);

(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/dist/owa.tracker.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
//]]>

Here is the log file - I do not see any errors:

/var/www/html/owa-data/logs # tail -n=100 errors_fc302c3d156a296ff8685d38715b4bc3.txt
tail: invalid number '=100'
/var/www/html/owa-data/logs # tail -n 100 errors_fc302c3d156a296ff8685d38715b4bc3.txt
[15:34:12 2023-08-16] [32] [DEBUG] No capability passed or user is an admin and capable of everything.
[15:34:12 2023-08-16] [32] [DEBUG] REST API Nonce: 95604c1c0b
[15:34:12 2023-08-16] [32] [DEBUG] v1basereports
[15:34:12 2023-08-16] [32] [DEBUG] passed nonce: 95604c1c0b | matching nonce: 95604c1c0b
[15:34:12 2023-08-16] [32] [DEBUG] Validating metrics with owa_requiredValidation
[15:34:12 2023-08-16] [32] [DEBUG] Validation succeeded.
[15:34:12 2023-08-16] [32] [DEBUG] Validating period with owa_inArrayValidation
[15:34:12 2023-08-16] [32] [DEBUG] Validation succeeded.
[15:34:12 2023-08-16] [32] [DEBUG] Query: SELECT * FROM owa_site
[15:34:12 2023-08-16] [18] [DEBUG] Assembling view: owa_reportsRestView
[15:34:12 2023-08-16] [32] [DEBUG] CACHE: Hit (Warm) - Retrieved Object from Cache - Collection: owa_site, id: eee873c6edbac84c50af173971fb4274
[15:34:12 2023-08-16] [32] [DEBUG] CACHE: Hit (Warm) - Retrieved Object from Cache - Collection: owa_site, id: eee873c6edbac84c50af173971fb4274
[15:34:12 2023-08-16] [18] [DEBUG] Total session time: 0.060199975967407
[15:34:12 2023-08-16] [32] [DEBUG] CACHE: Hit (Warm) - Retrieved Object from Cache - Collection: owa_site, id: eee873c6edbac84c50af173971fb4274
[15:34:12 2023-08-16] [18] [DEBUG] Goodbye from OWA
[15:34:12 2023-08-16] [32] [DEBUG] CACHE: Hit (Warm) - Retrieved Object from Cache - Collection: owa_site, id: eee873c6edbac84c50af173971fb4274
[15:34:12 2023-08-16] [18] [DEBUG] starting to persist cache...
[15:34:12 2023-08-16] [18] [DEBUG] There is no cold cache to persist to.
[15:34:12 2023-08-16] [32] [DEBUG] CACHE: Hit (Warm) - Retrieved Object from Cache - Collection: owa_site, id: eee873c6edbac84c50af173971fb4274
[15:34:12 2023-08-16] [18] [DEBUG] Cache Statistics:
Total Hits: 6 (Warm/Cold: 6/0)
Total Miss: 2
Total Added to Cache: 2
Total Replaced: 0
Total Dirty: 2
Total Persisted: 0
Total Removed: 0
[15:34:12 2023-08-16] [32] [DEBUG] no start/end params passed to owa_metric::setTimePeriod
[15:34:12 2023-08-16] [32] [DEBUG] getting metric entities for visits
[15:34:12 2023-08-16] [32] [DEBUG] pre-reduce set of entities to choose from: Array
(
[visits] => Array
(
[0] => base.session
[1] => base.request
)

)

[15:34:12 2023-08-16] [32] [DEBUG] post-reduce set of entities to choose from: Array
(
[0] => base.session
[1] => base.request
)

[15:34:12 2023-08-16] [32] [DEBUG] Entities summary levels: Array
(
[base.session] => 1
[base.request] => 0
)

[15:34:12 2023-08-16] [32] [DEBUG] Dimensions: Array
(
[0] => referralPageTitle
[1] => referralPageUrl
)

[15:34:12 2023-08-16] [32] [DEBUG] Checking the following dimensions for relation to base.session: Array
(
[0] => referralPageTitle
[1] => referralPageUrl
[2] => date
[3] => medium
[4] => siteId
)

[15:34:12 2023-08-16] [32] [DEBUG] Foreign Key check: referer_id
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: referralPageTitle is related to base.session
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: referralPageTitle is related to base.session.
[15:34:12 2023-08-16] [32] [DEBUG] Foreign Key check: referer_id
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: referralPageUrl is related to base.session
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: referralPageUrl is related to base.session.
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: date is denormalized into base.session
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: date is related to base.session.
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: medium is denormalized into base.session
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: medium is related to base.session.
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: siteId is denormalized into base.session
[15:34:12 2023-08-16] [32] [DEBUG] Dimension: siteId is related to base.session.
[15:34:12 2023-08-16] [32] [DEBUG] optimal base entity is: base.session
[15:34:12 2023-08-16] [32] [DEBUG] Using base.session as fact table entity for this result set.
[15:34:12 2023-08-16] [32] [DEBUG] Foreign Key check: referer_id
[15:34:12 2023-08-16] [32] [DEBUG] Foreign Key check: referer_id
[15:34:12 2023-08-16] [32] [DEBUG] Query: SELECT COUNT(DISTINCT session.id) as visits FROM owa_session as session JOIN owa_referer AS referer_via_ ON session.referer_id = referer_via_.id WHERE session.yyyymmdd BETWEEN '20230809' AND '20230816' AND session.medium = 'referral' AND session.site_id = 'd0f29ca3a4b71cfcb37e86615fae402f' LIMIT 1
[15:34:12 2023-08-16] [32] [DEBUG] Foreign Key check: referer_id
[15:34:12 2023-08-16] [32] [DEBUG] Foreign Key check: referer_id
[15:34:12 2023-08-16] [32] [DEBUG] applying limit of: 10
[15:34:12 2023-08-16] [32] [DEBUG] Query: SELECT referer_via_.page_title as referralPageTitle, referer_via_.url as referralPageUrl, COUNT(DISTINCT session.id) as visits FROM owa_session as session JOIN owa_referer AS referer_via_ ON session.referer_id = referer_via_.id WHERE session.yyyymmdd BETWEEN '20230809' AND '20230816' AND session.medium = 'referral' AND session.site_id = 'd0f29ca3a4b71cfcb37e86615fae402f' GROUP BY referer_via_.page_title, referer_via_.url ORDER BY visits DESC LIMIT 100
[15:34:12 2023-08-16] [32] [DEBUG] Assembling view: owa_reportsRestView
[15:34:12 2023-08-16] [32] [DEBUG] Total session time: 0.062285900115967
[15:34:12 2023-08-16] [32] [DEBUG] Goodbye from OWA
[15:34:12 2023-08-16] [32] [DEBUG] starting to persist cache...
[15:34:12 2023-08-16] [32] [DEBUG] There is no cold cache to persist to.
[15:34:12 2023-08-16] [32] [DEBUG] Cache Statistics:
Total Hits: 6 (Warm/Cold: 6/0)
Total Miss: 2
Total Added to Cache: 2
Total Replaced: 0
Total Dirty: 2
Total Persisted: 0
Total Removed: 0

@iYoungblood iYoungblood added the question More of a question than an issue. label Aug 16, 2023
@noone-silent
Copy link

Check if your browser has "Do Not Track" enabled. If it is enabled, the script doesn't track you.

@mbtools
Copy link

mbtools commented Jan 6, 2024

Here's the corresponding setting on Chrome: chrome://settings/cookies

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question More of a question than an issue.
Projects
None yet
Development

No branches or pull requests

3 participants