generated from teamdigitale/gatsby-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
83 lines (80 loc) · 2.16 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
siteMetadata: {
name: 'CHANGEME',
hostname: 'CHANGEME.example.org',
siteUrl: 'https://CHANGEME/',
},
plugins: [
'gatsby-plugin-sitemap',
'gatsby-plugin-jss',
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'contents',
path: `${__dirname}/contents`,
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
'gatsby-remark-attr',
{
resolve: `gatsby-remark-images`,
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 740,
},
},
],
},
},
'gatsby-plugin-image',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-sharp',
options: {
defaults: {
formats: ['auto', 'webp', 'avif'],
placeholder: 'blurred',
},
},
},
{
resolve: 'gatsby-plugin-matomo',
options: {
siteId: 'CHANGEME',
matomoUrl: `https://ingestion.webanalytics.italia.it/`,
siteUrl: 'https://CHANGEME',
matomoPhpScript: 'matomo.php',
matomoJsScript: 'matomo.js',
localScript: '/assets/matomo.js',
enableJSErrorTracking: true,
},
},
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
id: 'CHANGEME',
// Include GTM in development.
//
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,
// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
//
// Defaults to null
defaultDataLayer: { platform: 'gatsby' },
// Name of the event that is triggered
// on every Gatsby route change.
//
// Defaults to gatsby-route-change
routeChangeEventName: 'Click su Ancora',
},
},
'gatsby-plugin-no-index',
],
};