# Header Scripts

**URL:** <https://forum.shopware.com/t/header-scripts/52541>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [23. April 2018 um 10:50 UTC](https://forum.shopware.com/t/header-scripts/52541 "2018-04-23T10:50:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomasz](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tomasz](https://forum.shopware.com/u/Tomasz)\
**Post date:** [23. April 2018 um 10:50 UTC](https://forum.shopware.com/t/header-scripts/52541/1 "2018-04-23T10:50:05Z")

</div>

Hello,

&nbsp;

Can anyone tell where the scripts are loaded in the header just before the meta data. I would like to turn them off, but I do not know where they are called

---

<div class="post-metadata">

**Author:** ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)\
**Post date:** [23. April 2018 um 11:00 UTC](https://forum.shopware.com/t/header-scripts/52541/2 "2018-04-23T11:00:05Z")

</div>

Hi,

I think those scripts are specified in your Theme.php file, there’s a section called javascript, it’s an array including all the different files. You may need to check the theme you’re extending as well

```
 /**
     * Javascript files which will be used in the theme.
     *
     * @var array
     */
    protected $javascript = [
        // Third party plugins / libraries
        'src/js/vendors/modernizr/modernizr.custom.35977.js',
        'vendors/js/jquery/jquery.min.js',
        'vendors/js/picturefill/picturefill.min.js',
        'vendors/js/jquery.transit/jquery.transit.js',
        'vendors/js/jquery.event.move/jquery.event.move.js',
        'vendors/js/jquery.event.swipe/jquery.event.swipe.js',
        'vendors/js/flatpickr/flatpickr.min.js',

        // Shopware specific plugins
        'src/js/jquery.plugin-base.js',
        'src/js/jquery.state-manager.js',
        'src/js/jquery.storage-manager.js',
        'src/js/jquery.off-canvas-menu.js',
        'src/js/jquery.search.js',
        'src/js/jquery.tab-menu.js',
        'src/js/jquery.image-slider.js',
.....

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Tomasz](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tomasz](https://forum.shopware.com/u/Tomasz)\
**Post date:** [23. April 2018 um 11:23 UTC](https://forum.shopware.com/t/header-scripts/52541/3 "2018-04-23T11:23:46Z")

</div>

```
 I did not find them there. It's a bit weird because if I'm previewing the page via ctrl + u, there are no scripts. Only ctrl + shift + j shows these scripts.
```

---

<div class="post-metadata">

**Author:** ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)\
**Post date:** [23. April 2018 um 13:31 UTC](https://forum.shopware.com/t/header-scripts/52541/4 "2018-04-23T13:31:18Z")

</div>

Do you have any module installed that could be including those scripts? Something to manage google analytics and/or facebook?

---

<div class="post-metadata">

**Author:** ![Tomasz](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tomasz](https://forum.shopware.com/u/Tomasz)\
**Post date:** [23. April 2018 um 13:33 UTC](https://forum.shopware.com/t/header-scripts/52541/5 "2018-04-23T13:33:35Z")

</div>

I found the google tag manager plugin, so I’m looking for it here.
