diff --git a/README.md b/README.md index 8fb5e4c..f47e509 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ This module implements a Facebook Tracking Pixel to track your users. 3) Go and drink a coffee or tee... or at least some water, you deserve it :) +### Upgrading from Drupal 7 + +Sites upgraded from Drupal 7 will have Facebook Pixel ID automatically imported into the new site. The other settings are not included and will need to be set manually. + ### ADD ON Modules * Facebook Pixel Commerce diff --git a/migrations/d7_facebook_pixel_settings.yml b/migrations/d7_facebook_pixel_settings.yml new file mode 100644 index 0000000..7c8eba7 --- /dev/null +++ b/migrations/d7_facebook_pixel_settings.yml @@ -0,0 +1,15 @@ +id: d7_facebook_pixel_settings +label: Facebook pixel 7 configuration +migration_tags: + - Drupal 7 + - Configuration +source: + plugin: variable + variables: + - facebook_pixel_id + source_module: facebook_pixel +process: + facebook_id: facebook_pixel_id +destination: + plugin: config + config_name: facebook_pixel.settings