-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from foomo/sesamy-cli-0.9.0
feat(tagmanager): add mpv2 user data transformation
- Loading branch information
Showing
22 changed files
with
538 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package tagmanager | ||
|
||
import ( | ||
conversionlinkerprovider "github.com/foomo/sesamy-cli/pkg/provider/conversionlinker" | ||
criteoprovider "github.com/foomo/sesamy-cli/pkg/provider/criteo" | ||
emarsysprovider "github.com/foomo/sesamy-cli/pkg/provider/emarsys" | ||
facebookprovider "github.com/foomo/sesamy-cli/pkg/provider/facebook" | ||
googleadsprovider "github.com/foomo/sesamy-cli/pkg/provider/googleads" | ||
googleanalyticsprovider "github.com/foomo/sesamy-cli/pkg/provider/googleanalytics" | ||
googletagmanagerprovider "github.com/foomo/sesamy-cli/pkg/provider/googletagmanager" | ||
microsoftadsprovider "github.com/foomo/sesamy-cli/pkg/provider/microsoftads" | ||
tracifyprovider "github.com/foomo/sesamy-cli/pkg/provider/tracify" | ||
umamiprovider "github.com/foomo/sesamy-cli/pkg/provider/umami" | ||
"github.com/pterm/pterm" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// NewTags represents the tags command | ||
func NewTags(root *cobra.Command) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "tags", | ||
Short: "Print out all available tags", | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
// Define the data for the first table | ||
data := pterm.TableData{ | ||
{"Name", "Tag"}, | ||
{conversionlinkerprovider.Name, conversionlinkerprovider.Tag}, | ||
{criteoprovider.Name, criteoprovider.Tag}, | ||
{emarsysprovider.Name, emarsysprovider.Tag}, | ||
{facebookprovider.Name, facebookprovider.Tag}, | ||
{googleadsprovider.Name, googleadsprovider.Tag}, | ||
{googleanalyticsprovider.Name, googleanalyticsprovider.Tag}, | ||
{googletagmanagerprovider.Name, googletagmanagerprovider.Tag}, | ||
{microsoftadsprovider.Name, microsoftadsprovider.Tag}, | ||
{tracifyprovider.Name, tracifyprovider.Tag}, | ||
{umamiprovider.Name, umamiprovider.Tag}, | ||
} | ||
|
||
return pterm.DefaultTable.WithHasHeader().WithData(data).Render() | ||
}, | ||
} | ||
|
||
root.AddCommand(cmd) | ||
|
||
return cmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package config | ||
|
||
type FacebookConversionAPITag struct { | ||
// Extend Meta Pixel cookies (fbp/fbc) | ||
ExtendCookies bool `json:"extendCookies" yaml:"extendCookies"` | ||
// Enable Use of HTTP Only Secure Cookie (gtmeec) to Enhance Event Data | ||
EnableEventEnhancement bool `json:"enableEventEnhancement" yaml:"enableEventEnhancement"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package config | ||
|
||
type GoogleAdsConversionTracking struct { | ||
Label string `json:"label" yaml:"label"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.