CDK Global Inc. is divesting its digital marketing business to focus more on its core automotive software operations.