function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Taukappa01Taukappa01 

sforce.apex.execute

Does this:
var result = sforce.apex.execute(.....)
produce a page hit when it is called on a Site page?

Thanks!
bob_buzzardbob_buzzard
Do you mean does it consume the page views limit? Or does "produce a page hit" mean something else?  I wouldn't expect a page hit, as you are accessing the SOAP endpoint rather than a page on the site.  It wouldn't surprise me if it consumed an API call, but I can't find anything that suggests this is the case in the documentation. 
Taukappa01Taukappa01
I also can't find any documentation of it counting against page view limits.  We are experiencing unusual volume of page views counting against us and not being reflected in google analytics.  But, Salesforce "Page Views" are off the charts.  They can't explain it either.
Rahul SharmaRahul Sharma
Any reason, why you are not using JavaScript Remoting instead of AJAX toolkit?
AncaComaneciuAncaComaneciu
Hello, I am facing the same issue. Did you found any answer to this question?
Taukappa01Taukappa01
I didn't not find an answer.  I had to change the code to only hit that exceute when necessary.  I dropped the page hits by 90+% by only calling it as needed, unlike the original loop the code (not my code) was in. :)
AncaComaneciuAncaComaneciu
Ok. Thank you.