# WordPress site with Rocket Cache problem with data

**URL:** <https://community.hubspot.com/t/wordpress-site-with-rocket-cache-problem-with-data/78577>\
**Category:** CMS Development\
**Tags:** javascript, forms, professional\
**Created:** [April 3, 2023, 10:21am UTC](https://community.hubspot.com/t/wordpress-site-with-rocket-cache-problem-with-data/78577 "2023-04-03T10:21:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZaAz](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ZaAz](https://community.hubspot.com/u/ZaAz)\
**Post date:** [April 3, 2023, 10:21am UTC](https://community.hubspot.com/t/wordpress-site-with-rocket-cache-problem-with-data/78577/1 "2023-04-03T10:21:42Z")

</div>

Hello, I have a site on WordPress. To optimize the site, I’m using the Rocket Cache plugin. Forms are connected with JS and scripts are linked on every page. It has an optimization to scripts, like defer and delay load. When these options are enabled the data from the form is missing. I’ve excluded HS scripts, but data still missing.  
HS didn’t identify the original source properly (it’s always Direct Traffic) and didn’t collect all page views that were part of the session. I did another test in incognito (after clearing the cache), through Organic Search.  
And the problem is:

1. HS set the original as Direct

2. HS didn’t collect any pageviews - I visited 3-4 pages during the session, but none appear on my HS record (see image above)

I moved pretty quickly between pages, so my guess is that in cases of users moving between pages fast, the tag isn’t fired quickly enough.

Any idea how to solve problems that some data are missing on submitting the form  
List of excluded scripts:

[https://prnt.sc/lsl5hNZbx\_9B](https://prnt.sc/lsl5hNZbx_9B)

 ![image.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/d/3da7cca772fff5ed15136c714bd0e3079c6c2cb9.png)  
Example of problem  
UPD: Link of the site - [https://www.qmarkets.net/](https://www.qmarkets.net/)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 4, 2023, 6:40pm UTC](https://community.hubspot.com/t/wordpress-site-with-rocket-cache-problem-with-data/78577/2 "2023-04-04T18:40:33Z")

</div>

Hi, @ZaAz 👋 Can you include a link to where this is occurring? This can help the community attempt to diagnose the issue or suggest steps on where to start. Otherwise, they may not be able to offer a guess on possible next steps.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![ZaAz](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ZaAz](https://community.hubspot.com/u/ZaAz)\
**Post date:** [April 4, 2023, 9:29pm UTC](https://community.hubspot.com/t/wordpress-site-with-rocket-cache-problem-with-data/78577/3 "2023-04-04T21:29:17Z")

</div>

Hi, [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074). Thank You for Your reply.  
Link of the site - [https://www.qmarkets.net/](https://www.qmarkets.net/)

---

<div class="post-metadata">

**Author:** ![ZaAz](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ZaAz](https://community.hubspot.com/u/ZaAz)\
**Post date:** [April 7, 2023, 8:48am UTC](https://community.hubspot.com/t/wordpress-site-with-rocket-cache-problem-with-data/78577/4 "2023-04-07T08:48:51Z")

</div>

Full list of excluded files for defer, async, and minify of js:  
(.\*)hsleadflows(.\*)  
[js.hsleadflows.net/leadflows.js](http://js.hsleadflows.net/leadflows.js)  
[js.hsleadflows.net](http://js.hsleadflows.net)  
hsleadflows  
leadflows.js  
(.\*)[hsforms.net](http://hsforms.net)(.\*)  
[js-eu1.hsforms.net](http://js-eu1.hsforms.net)  
[hsforms.net](http://hsforms.net)  
(.\*)hs-scripts(.\*)  
[hs-scripts.com](http://hs-scripts.com)  
(.\*)usemessages(.\*)  
[js.usemessages.com](http://js.usemessages.com)  
(.\*)hs-analytics(.\*)  
[js.hs-analytics.net](http://js.hs-analytics.net)  
(.\*)hubid(.\*)  
hubid  
(.\*)hscta(.\*)  
[js.hscta.net](http://js.hscta.net)  
(.\*)hbspt(.\*)  
hbspt.cta.load  
(.\*)hs-banner(.\*)  
[js.hs-banner.com](http://js.hs-banner.com)  
banner.js  
(.\*)googletagmanager(.\*)  
[www.googletagmanager.com](http://www.googletagmanager.com)  
(.\*)aggregage(.\*)  
[widget.aggregage.com](http://widget.aggregage.com)  
(.\*)[wistia.com](http://wistia.com)(.\*)  
[fast.wistia.com](http://fast.wistia.com)  
(.\*)newrelic(.\*)  
[js-agent.newrelic.com/nr-1177.min.js](http://js-agent.newrelic.com/nr-1177.min.js)  
(.\*)linkedin(.\*)  
[www.linkedin.com/autofill/js/autofill.js](http://www.linkedin.com/autofill/js/autofill.js)  
(.\*)popt(.\*)  
cdn.popt.in/pixel.js  
(.\*)dreamdata(.\*)  
cdn.dreamdata.cloud  
(.\*)hotjar(.\*)  
[static.hotjar.com](http://static.hotjar.com)  
(.\*)hsadspixel(.\*)  
[js.hsadspixel.net](http://js.hsadspixel.net)  
(.\*)licdn(.\*)  
[snap.licdn.com](http://snap.licdn.com)  
hbspt  
E-v1  
After I added this to Excluded JavaScript Files for Minify I got a page view statistics, but it’s still wrong because I came from Google and to another page. So it’s not Direct traffic.

 ![Screenshot_1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/c/fcb55691b236b1490c7fe197da0ad4ac1475dbf3.png)
